gcg-website/.gitea/workflows/dev.yaml
Denys Konovalov 6e702b3ad3
All checks were successful
Website Prod/Test / prod-build (push) Successful in 11s
Website Prod/Test / test-build (push) Successful in 7s
.gitea/workflows/dev.yaml aktualisiert
2024-07-05 21:55:02 +02:00

35 lines
847 B
YAML

name: Website Dev
on:
push:
branches: [dev]
defaults:
run:
working-directory: /opt/data/actions/gcg-website-dev
jobs:
dev-build:
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 }}