From 4df1ba91b11fca6c96182592c2f95bb9b26f00a9 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 5 Jul 2024 22:02:42 +0200 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/pull=5Frequest.yml=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/pull_request.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/pull_request.yml diff --git a/.gitea/workflows/pull_request.yml b/.gitea/workflows/pull_request.yml new file mode 100644 index 00000000..2bbf530d --- /dev/null +++ b/.gitea/workflows/pull_request.yml @@ -0,0 +1,21 @@ +name: Website Pull Request + +on: + pull_request: + +jobs: + test-build: + if: gitea.repository == 'gcg/gcg-website' + runs-on: act-runner-user + steps: + - name: Checkout + uses: https://github.com/actions/checkout@v4 + - name: Build + run: | + hugo --minify --gc --baseURL "https://test.cantorgymnasium.de/" --buildDrafts --buildFuture -d test + - name: Notification + uses: actions/telegram-action@main + if: always() + with: + chat_id: ${{ secrets.TG_CHAT_ID }} + token: ${{ secrets.TG_TOKEN }}