From 12c8fd3908b595681db86eadac6539c47d8baa79 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 5 Jul 2024 21:53:54 +0200 Subject: [PATCH] .gitea/workflows/prod.yaml aktualisiert --- .gitea/workflows/prod.yaml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index ac432086..588e77f2 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -1,11 +1,9 @@ -name: website-main +name: Website Prod/Test on: - push: - branches: - - master + push: [master] schedule: - - cron: '0 0 * * *' + - cron: '@daily' defaults: run: @@ -15,13 +13,12 @@ jobs: prod-build: if: gitea.repository == 'gcg/gcg-website' runs-on: act-runner-user - timeout-minutes: 5 steps: - - name: pull + - name: Pull run: | git fetch --all git reset --hard origin/master - - name: build + - name: Build run: | rm -rf public hugo --minify --gc --baseURL "https://cantorgymnasium.de/" @@ -30,7 +27,7 @@ jobs: cd public pagefind_extended --site=. rsync -azr --delete ./ /opt/data/webdata/gcg-website/ - - name: notification + - name: Notification uses: actions/telegram-action@main if: always() with: @@ -39,17 +36,16 @@ jobs: test-build: if: gitea.repository == 'gcg/gcg-website' runs-on: act-runner-user - timeout-minutes: 5 steps: - - name: pull + - name: Pull run: | git fetch --all git reset --hard origin/master - - name: build + - name: Build run: | rm -rf test hugo --minify --gc --baseURL "https://test.cantorgymnasium.de/" --buildDrafts --buildFuture -d test - - name: deploy + - name: Deploy run: | cd test rsync -azr --delete ./ /opt/data/webdata/gcg-website-test/