From 07ca691f129569dd883ad04dffdb08672eb4cc6e Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 23 Sep 2023 23:05:25 +0200 Subject: [PATCH] switch dev to git pull --- .gitea/workflows/dev.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index f655f7e5..93e5d3bd 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -15,13 +15,19 @@ jobs: runs-on: act-runner-user timeout-minutes: 5 steps: - - name: clone - uses: actions/checkout@v3 + - name: pull + run: | + cd /opt/data/actions/gcg-website-dev + git pull + git reset --hard origin/dev - name: build - run: hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev + run: | + cd /opt/data/actions/gcg-website-dev + rm -rf dev + hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev - name: deploy run: | - cd dev + cd /opt/data/actions/gcg-website-dev/dev pagefind_extended --site=. rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/ - name: notification