Refactor deployment workflow to consolidate commands for build and deploy steps
Some checks failed
/ print-content (push) Failing after 4s
Some checks failed
/ print-content (push) Failing after 4s
This commit is contained in:
parent
0458fb655d
commit
1c35621643
1 changed files with 2 additions and 5 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue