From 940a2674796146d0dc481d172ddc9636db7cdf55 Mon Sep 17 00:00:00 2001 From: "Fabian T. Ecke" Date: Wed, 25 Mar 2026 22:30:03 +0100 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/publish-2-0.yaml=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/publish-2-0.yaml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/publish-2-0.yaml diff --git a/.gitea/workflows/publish-2-0.yaml b/.gitea/workflows/publish-2-0.yaml new file mode 100644 index 0000000..5476bca --- /dev/null +++ b/.gitea/workflows/publish-2-0.yaml @@ -0,0 +1,37 @@ +name: Website + +on: + push: + branches: [main] + +defaults: + run: + working-directory: /opt/runner/workdir/FTE-Homepage + +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/main + - name: NPM install + run: | + npm i + - name: Build + run: | + rm -rf public + hugo --minify --gc + - name: Deploy + run: | + cd public + rsync -azr --delete ./ /var/www/html/www.ftecke.de/ + # - name: Notification + # uses: actions/telegram-action@main + # if: always() + # with: + # chat_id: ${{ secrets.TG_CHAT_ID }} + # token: ${{ secrets.TG_TOKEN }} \ No newline at end of file