fix: use full path and check before shredding
Some checks failed
Deploy Website / build-and-deploy (push) Failing after 2s

This commit is contained in:
Andrew Rioux 2025-10-19 23:47:35 -04:00
parent 0e526907e9
commit 91aa9af6ae
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94

View File

@ -10,7 +10,7 @@ jobs:
- name: Build article code - name: Build article code
run: | run: |
nix-build -A articles /run/current-system/sw/bin/nix-build -A articles
- name: Deploy article HTML - name: Deploy article HTML
run: | run: |
@ -18,10 +18,10 @@ jobs:
${{ secrets.DEPLOY_SSH_KEY }} ${{ secrets.DEPLOY_SSH_KEY }}
EOD EOD
nix-shell -p rsync openssh --run \ /run/current-system/sw/bin/nix-shell -p rsync openssh --run \
'rsync -avz -e "ssh -oStrictHostKeyChecking=accept-new -i ssh-key" result/* deploy@andrew.riouxs.co:/srv/site' 'rsync -avz -e "ssh -oStrictHostKeyChecking=accept-new -i ssh-key" result/* deploy@andrew.riouxs.co:/srv/site'
- name: Remove SSH key - name: Remove SSH key
if: always() if: always()
run: | run: |
shred ssh-key test -f ssh-key && shred ssh-key