2024-07-05 22:02:42 +02:00
|
|
|
name: Website Pull Request
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2024-07-07 11:26:39 +02:00
|
|
|
test-build-pr:
|
|
|
|
name: Pull-Request-Testbuild
|
2024-07-05 22:02:42 +02:00
|
|
|
if: gitea.repository == 'gcg/gcg-website'
|
|
|
|
runs-on: act-runner-user
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- 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 }}
|