Skip to content

Commit 0f7e4cb

Browse files
committed
Update deploy.yml to set permissions of remote app dir
1 parent 20e2413 commit 0f7e4cb

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
@@ -51,6 +51,10 @@ jobs:
5151
rsync --version
5252
sudo rsync -avz --exclude 'demo.sqlite' -e "ssh -i ${{ secrets.SSH_PRIVATE_KEY }}" ${{ env.PUBLISH_OUTPUT_DIR }}/ ${{ secrets.SSH_USERNAME }}@demo.auth.myvas.com:${{ env.REMOTE_APP_DIR }}/
5353
54+
# Set permissions
55+
sudo chown -R ${{ secrets.SSH_USERNAME }}:www-data ${{ env.REMOTE_APP_DIR }}
56+
sudo chmod -R 775 ${{ env.REMOTE_APP_DIR }}
57+
5458
- name: Start the service
5559
uses: appleboy/ssh-action@v1
5660
with:

0 commit comments

Comments
 (0)