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
key: ${{ secrets.SSH_KEY }}
script: |
sudo su
rm -rf /usr/share/nginx/html/ilia.moe
cp -r repo/src /usr/share/nginx/html/ilia.moe
cp -r repo/hugo/recipe/public /usr/share/nginx/html/ilia.moe/cool-stuff/recipes
sudo rm -rf /usr/share/nginx/html/ilia.moe
sudo 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
sudo cp repo/error_pages/* /usr/share/nginx/html/resources