gcg-website/.gitea/workflows/dev.yaml
Denys Konovalov b77d1fe355
All checks were successful
Website Pull Request / Pull-Request-Testbuild (pull_request) Successful in 22s
Website Prod/Test / Produktivumgebung (push) Successful in 15s
Website Prod/Test / Testumgebung (push) Successful in 7s
.gitea/workflows/dev.yaml aktualisiert
2024-07-07 17:38:07 +02:00

36 lines
880 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 pull
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 }}