Update fast-deploy.yaml

Fixed permission error
This commit is contained in:
Emilia Allison 2022-09-29 21:34:17 -04:00 committed by GitHub
parent 52bd9c4c84
commit 080175aab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ jobs:
username: ubuntu username: ubuntu
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
script: | script: |
sudo su sudo rm -rf /usr/share/nginx/html/ilia.moe
rm -rf /usr/share/nginx/html/ilia.moe sudo cp -r repo/src /usr/share/nginx/html/ilia.moe
cp -r repo/src /usr/share/nginx/html/ilia.moe sudo cp -r repo/hugo/recipe/public /usr/share/nginx/html/ilia.moe/cool-stuff/recipes
cp -r repo/hugo/recipe/public /usr/share/nginx/html/ilia.moe/cool-stuff/recipes sudo cp repo/error_pages/* /usr/share/nginx/html/resources