From eef452413588031cbfaa2766219920698220a4ca Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 23 Sep 2023 15:48:56 +0200 Subject: [PATCH] .gitea/workflows/prod.yaml aktualisiert --- .gitea/workflows/prod.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index 395daf2b..fec68acd 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -25,10 +25,12 @@ jobs: git fetch --all git reset --hard origin/master - name: build - run: hugo --minify --gc --baseURL "https://cantorgymnasium.de/" + run: | + cd /opt/data/actions/gcg-website-master + hugo --minify --gc --baseURL "https://cantorgymnasium.de/" - name: deploy run: | - cd public + cd cd /opt/data/actions/gcg-website-master/public pagefind --source=. rsync -azr --delete ./ /opt/data/webdata/gcg-website/ - name: notification @@ -49,10 +51,12 @@ jobs: git fetch --all git reset --hard origin/master - name: build - run: hugo --minify --gc --baseURL "https://test.cantorgymnasium.de/" --buildDrafts --buildFuture -d test + run: | + cd /opt/data/actions/gcg-website-master + hugo --minify --gc --baseURL "https://test.cantorgymnasium.de/" --buildDrafts --buildFuture -d test - name: deploy run: | - cd test + cd cd /opt/data/actions/gcg-website-master/test rsync -azr --delete ./ /opt/data/webdata/gcg-website-test/ auto-rebuild: if: gitea.repository == 'gcg/gcg-website' && gitea.event_name == 'schedule' @@ -65,9 +69,11 @@ jobs: git fetch --all git reset --hard origin/master - name: build - run: hugo --minify --gc --baseURL "https://cantorgymnasium.de/" + run: | + cd /opt/data/actions/gcg-website-master + hugo --minify --gc --baseURL "https://cantorgymnasium.de/" - name: deploy run: | - cd public + cd cd /opt/data/actions/gcg-website-master/public pagefind --source=. rsync -azr --delete ./ /opt/data/webdata/gcg-website/