Try rsync deploy
Some checks failed
Deploy to Web Server / deploy (push) Failing after 14s

This commit is contained in:
aria 2025-05-19 20:06:18 +10:00
parent f8207b4e07
commit 7bca28e484
Signed by: aria
SSH key fingerprint: SHA256:WqtcVnDMrv1lnUlNah5k31iywFUI/DV+5yHzCTO4Vds

View file

@ -54,9 +54,19 @@ jobs:
run: |
ssh -i ~/.ssh/aria-coffee-deploy ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "[ -d "/var/www/Aria/dist" ] && mv /var/www/Aria/dist /var/www/Aria/dist-old"
- name: Copy over new build-action
run: |
scp -i ~/.ssh/aria-coffee-deploy -rC ./dist ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }}:/var/www/Aria
# - name: Copy over new build-action
# run: |
# scp -i ~/.ssh/aria-coffee-deploy -rC ./dist ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }}:/var/www/Aria
- name: rsync deployments
uses: https://github.com/Burnett01/rsync-deployments@7.0.2
with:
switches: -avzrP
path: dist/
remote_path: /var/www/Aria/dist
remote_host: ${{ vars.SERVER_HOST }}
remote_user: ${{ vars.SERVER_USER }}
remote_key: ${{ secrets.SSH_KEY }}
- name: Set permissions on the deployed files
run: |