From 15b7e5bd2bd3836f7c23a17b3f01fc198931ea60 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 30 Dec 2023 22:08:16 +0100 Subject: [PATCH] .gitea/workflows/prod.yml aktualisiert --- .gitea/workflows/prod.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/prod.yml b/.gitea/workflows/prod.yml index 13d70eb..34b57c6 100644 --- a/.gitea/workflows/prod.yml +++ b/.gitea/workflows/prod.yml @@ -7,7 +7,7 @@ on: defaults: run: - working-directory: /opt/data/actions/schuelerzeitung-main + working-directory: /opt/runner/workdir/schuelerzeitung-main jobs: prod-build: @@ -15,24 +15,30 @@ jobs: runs-on: act-runner-user timeout-minutes: 5 steps: - - name: pull + - name: Pull run: | git fetch --all git reset --hard origin/main - - name: build + - name: Build run: | rm -rf public hugo --minify --gc --baseURL "https://schuelerzeitung-gcg.de/" - - name: deploy + - name: Deploy run: | cd public rsync -azr --delete ./ /opt/data/webdata/schuelerzeitung/ - - name: notification + - name: Telegram notification uses: actions/telegram-action@main if: always() with: chat_id: ${{ secrets.TG_CHAT_ID }} token: ${{ secrets.TG_TOKEN }} + + - name: Discord notification + uses: https://github.com/PingChunChung/actions-discord-notifier + with: + webhook: ${{ secrets.DISCORD_WEBHOOK_URL }} + test-build: if: gitea.repository == 'gcg/schuelerzeitung' runs-on: act-runner-user