update deploy script
Deploy Static Site / deploy (push) Successful in 10m44s

This commit is contained in:
Lars Nolden
2026-06-23 22:10:07 +02:00
parent c490c8ab0f
commit 41f6366e33
+8 -4
View File
@@ -31,11 +31,15 @@ jobs:
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
- name: Deploy static files to server - name: Deploy static files to server
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
REMOTE_DIR: /home/deploy/projects/ge-bos/static
run: | run: |
rsync -avz --delete \ SSH="ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=accept-new"
-e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=accept-new" \ # Recreate the target dir so removed files don't linger (rsync --delete equivalent)
out/ \ $SSH deploy@"$DEPLOY_HOST" "rm -rf '$REMOTE_DIR' && mkdir -p '$REMOTE_DIR'"
deploy@${{ secrets.DEPLOY_HOST }}:/home/deploy/projects/ge-bos/static/ # Stream the build output over ssh and extract it on the server
tar -czf - -C out . | $SSH deploy@"$DEPLOY_HOST" "tar -xzf - -C '$REMOTE_DIR'"
- name: Run deployment script - name: Run deployment script
run: | run: |