From a0440b0103428dd4cb7669631b5dc8ecc24c7413 Mon Sep 17 00:00:00 2001 From: "Fabian T. Ecke" Date: Wed, 25 Mar 2026 21:08:55 +0100 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/dev-2-0.yaml=20hinzugef=C3=BCg?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/dev-2-0.yaml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/dev-2-0.yaml diff --git a/.gitea/workflows/dev-2-0.yaml b/.gitea/workflows/dev-2-0.yaml new file mode 100644 index 0000000..62d25c7 --- /dev/null +++ b/.gitea/workflows/dev-2-0.yaml @@ -0,0 +1,38 @@ +name: Website + +on: + push: + branches: [dev] + workflow_dispatch: + +defaults: + run: + working-directory: /opt/runner/workdir/fte-homepage-dev + +jobs: + publish: + name: Website veröffentlichen + if: gitea.repository == 'fte/FTE-Homepage' + runs-on: act-runnerV2 + steps: + - name: Pull + run: | + git fetch --all + git reset --hard origin/dev + - name: NPM install + run: | + npm i + - name: Build + run: | + rm -rf public + hugo --minify --gc --baseURL="https://dev.ftecke.de" + - name: Deploy + run: | + cd public + rsync -azr --delete ./ /var/www/html/dev.ftecke.de/ + # - name: Notification + # uses: actions/telegram-action@main + # if: always() + # with: + # chat_id: ${{ secrets.TG_CHAT_ID }} + # token: ${{ secrets.TG_TOKEN }}