From da2f822169ae79fff92adbf993521ee7eab6ac3f Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sun, 19 Mar 2023 09:41:06 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.gitea/workflows/dev.yaml=E2=80=9C=20h?= =?UTF-8?q?inzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dev.yaml | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .gitea/workflows/dev.yaml diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml new file mode 100644 index 00000000..e0caba7e --- /dev/null +++ b/.gitea/workflows/dev.yaml @@ -0,0 +1,44 @@ +name: website-dev + +on: + push: + branches: + - dev + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + dev-build: + if: github.repository == 'gcg/gcg-website' && github.event_name == 'push' + runs-on: act-runner-user + timeout-minutes: 5 + steps: + - name: clone + uses: actions/checkout@v3 + with: + submodules: true + + - name: setup hugo + uses: https://github.com/peaceiris/actions-hugo@v2 + with: + hugo-version: '0.111.2' + extended: true + + - name: build + run: hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev + + - name: deploy + run: | + cd dev + pagefind --source=. + rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/ + + - name: notification + uses: https://github.com/yamaks2306/telegram-notification@main + if: always() + with: + chat_id: ${{ secrets.TG_CHAT_ID }} + token: ${{ secrets.TG_TOKEN }} + include_commit_info: false \ No newline at end of file