.gitea/workflows/publish-2-0.yaml hinzugefügt
Some checks failed
Website / Website veröffentlichen (push) Failing after 13s

This commit is contained in:
2026-03-25 21:37:45 +01:00
parent 3e27d2fd2c
commit 33aa0140dd

View File

@@ -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 }}