Refactor deployment workflow to separate commands for improved readability
Some checks failed
/ print-content (push) Has been cancelled

This commit is contained in:
암냥 2026-05-31 14:06:37 +09:00
commit 0458fb655d
No known key found for this signature in database

View file

@ -16,14 +16,15 @@ jobs:
- name: Build - name: Build
run: | run: |
source /etc/bashrc source /etc/bashrc
nix shell nixpkgs#bun --run "bun i && bun run build" nix shell nixpkgs#bun
bun i && bun run build
- name: Deploy - name: Deploy
run: | run: |
source /etc/bashrc source /etc/bashrc
# rsync의 ssh 옵션에 -i ssh_key를 직접 지정 nix shell nixpkgs#rsync nixpkgs#openssh
nix shell nixpkgs#rsync nixpkgs#openssh --run \
"rsync -avz --delete -e 'ssh -i ssh_key -o StrictHostKeyChecking=no' dist/* imnyang@10.11.8.101:/var/static/imnya.ng/." 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()