Refactor deployment workflow to consolidate commands for build and deploy steps
Some checks failed
/ print-content (push) Failing after 4s

This commit is contained in:
암냥 2026-05-31 14:13:12 +09:00
commit 1c35621643
No known key found for this signature in database

View file

@ -16,15 +16,12 @@ jobs:
- name: Build - name: Build
run: | run: |
source /etc/bashrc source /etc/bashrc
nix shell nixpkgs#bun nix shell nixpkgs#bun --command bash -c 'bun i && bun run build'
bun i && bun run build
- name: Deploy - name: Deploy
run: | run: |
source /etc/bashrc source /etc/bashrc
nix shell nixpkgs#rsync nixpkgs#openssh 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/.'
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()