Skip to content

Commit 7d7ab4d

Browse files
Merge pull request #29 from myvas/fix-deploy.yml
Update deploy.yml to set permissions of remote app dir
2 parents e0427c7 + 0f7e4cb commit 7d7ab4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ jobs:
6363
rsync --version
6464
rsync -avz --exclude 'demo.sqlite' -e "ssh -i ~/.ssh/id_rsa" ${{ env.PUBLISH_OUTPUT_DIR }}/ ${{ secrets.SSH_USERNAME }}@${{ env.SSH_HOST }}:${{ env.REMOTE_APP_DIR }}/
6565
66+
# Set permissions
67+
sudo chown -R ${{ secrets.SSH_USERNAME }}:www-data ${{ env.REMOTE_APP_DIR }}
68+
sudo chmod -R 775 ${{ env.REMOTE_APP_DIR }}
69+
6670
- name: Start the service
6771
uses: appleboy/ssh-action@v1
6872
with:

0 commit comments

Comments
 (0)