gcg-website/.gitea/workflows/dev.yaml
Denys Konovalov a9884b48bc
All checks were successful
Website Pull Request / Pull-Request-Testbuild (pull_request) Successful in 25s
Website Prod/Test / Produktivumgebung (push) Successful in 16s
Website Prod/Test / Testumgebung (push) Successful in 11s
.gitea/workflows/dev.yaml aktualisiert
2024-10-31 21:30:00 +01:00

36 lines
887 B
YAML

name: Website Dev
on:
push:
branches: [dev]
defaults:
run:
working-directory: /opt/runner/workdir/gcg-website-dev
jobs:
dev-build:
name: Entwicklungsumgebung
if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user
steps:
- name: Pull
run: |
git fetch --all
git reset --hard origin/dev
- name: Build
run: |
rm -rf dev
hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev
- name: Deploy
run: |
cd dev
pagefind_extended --site=.
rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/
- name: Notification
uses: actions/telegram-action@main
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}