From 080175aab2d92c636f5896f6d5567bc593a0b584 Mon Sep 17 00:00:00 2001 From: Emilia Date: Thu, 29 Sep 2022 21:34:17 -0400 Subject: [PATCH] Update fast-deploy.yaml Fixed permission error --- .github/workflows/fast-deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fast-deploy.yaml b/.github/workflows/fast-deploy.yaml index ce72929..12dd193 100644 --- a/.github/workflows/fast-deploy.yaml +++ b/.github/workflows/fast-deploy.yaml @@ -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