Files
fte-Homepage/.gitea/workflows/dev-2-0.yaml
Fabian T. Ecke 3e27d2fd2c
Some checks failed
Website / Website veröffentlichen (push) Failing after 21m18s
.gitea/workflows/dev-2-0.yaml aktualisiert
2026-03-25 21:08:13 +01:00

39 lines
900 B
YAML

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