Refactor deployment workflow to use ubuntu-latest and simplify build and deploy steps
Some checks failed
/ print-content (push) Failing after 1s

This commit is contained in:
암냥 2026-05-31 14:15:38 +09:00
commit aedb39a9ac
No known key found for this signature in database

View file

@ -1,13 +1,20 @@
on: [push] on: [push]
jobs: jobs:
print-content: print-content:
runs-on: native runs-on: ubuntu-latest
steps: steps:
- name: Run uname - name: Run uname
run: uname -a run: uname -a
- name: checkout code - name: checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install rsync
run: sudo apt-get update && sudo apt-get install -y rsync openssh-client
- name: Setup SSH Key - name: Setup SSH Key
run: | run: |
echo "${{ secrets.SSH_KEY }}" > ssh_key echo "${{ secrets.SSH_KEY }}" > ssh_key
@ -15,13 +22,11 @@ jobs:
- name: Build - name: Build
run: | run: |
source /etc/bashrc bun i && bun run build
nix shell nixpkgs#bun --command bash -c 'bun i && chmod +x node_modules/.bin/* && bun run build'
- name: Deploy - name: Deploy
run: | run: |
source /etc/bashrc rsync -avz --delete -e "ssh -i ssh_key -o StrictHostKeyChecking=no" dist/* imnyang@10.11.8.101:/var/static/imnya.ng/.
nix shell nixpkgs#rsync nixpkgs#openssh --command bash -c 'rsync -avz --delete -e "ssh -i ssh_key -o StrictHostKeyChecking=no" dist/* imnyang@10.11.8.101:/var/static/imnya.ng/.'
- name: Cleanup - name: Cleanup
if: always() if: always()