From e87bb3ec777ace5bd942861a298fda40138f4a18 Mon Sep 17 00:00:00 2001 From: Ari Date: Sun, 11 May 2025 03:00:58 -0400 Subject: [PATCH] Try to set file perms inside the action --- .forgejo/workflows/deploy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 5fc21b8..e4fc27b 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -41,3 +41,6 @@ jobs: - name: Deploy via SCP run: | scp -i ~/.ssh/id_ed25519 -rv ./_site/* ${{ vars.SERVER_USER }}@\[${{ vars.SERVER_HOST }}\]:/home/common/www/ariexpress/${{ github.ref_name }} + - name: Set permissions on the deployed files + run: | + ssh -i ~/.ssh/id_ed25519 ${{ vars.SERVER_USER }}@${{ vars.SERVER_HOST }} "chmod -R 755 /home/common/www/ariexpress/${{ github.ref_name }}" \ No newline at end of file