gcg-website/.gitea/workflows/pull_request.yml
2024-12-28 12:09:33 +01:00

26 lines
660 B
YAML

name: Website Pull Request
on:
pull_request:
jobs:
test-build-pr:
name: Pull-Request-Testbuild
if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
with:
lfs: true
depth: 1
- name: Build
run: |
hugo --minify --gc --baseURL "https://test.cantorgymnasium.de/" --buildDrafts --buildFuture -d test
- name: Notification
uses: actions/telegram-action@main
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}