a yet another directory change
All checks were successful
Deploy to Web Server / deploy (push) Successful in 40s

This commit is contained in:
Ariadna 2025-05-11 03:09:14 -04:00
parent e87bb3ec77
commit 5a474d7f19
Signed by: ari
SSH key fingerprint: SHA256:j4xpQafvRcIH4rwZqM5aREIogWsCjyYohia7vH0+uZY

View file

@ -36,11 +36,11 @@ jobs:
deno task build deno task build
- name: create folder if not exists - name: create folder if not exists
run: | run: |
ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /home/common/www/ariexpress/${{ github.ref_name }}" ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "mkdir -p /var/www/ariexpress/"
- name: Deploy via SCP - name: Deploy via SCP
run: | run: |
scp -i ~/.ssh/id_ed25519 -rv ./_site/* ${{ vars.SERVER_USER }}@\[${{ vars.SERVER_HOST }}\]:/home/common/www/ariexpress/${{ github.ref_name }} scp -i ~/.ssh/id_ed25519 -rv ./_site/* ${{ vars.SERVER_USER }}@\[${{ vars.SERVER_HOST }}\]:/var/www/ariexpress/
- name: Set permissions on the deployed files - name: Set permissions on the deployed files
run: | run: |
ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "chmod -R 755 /home/common/www/ariexpress/${{ github.ref_name }}" ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "chmod -R 755 /var/www/ariexpress/*"