for PRs build future and drafts
Some checks failed
/ build (pull_request) Has been cancelled

This commit is contained in:
Stefan Bethke 2024-10-13 13:25:34 +02:00
parent 3e50cb284a
commit 8eaf568f7d

View file

@ -36,9 +36,15 @@ jobs:
if: github.ref_name != 'main' if: github.ref_name != 'main'
run: | run: |
sed -i "s#baseURL: 'https://hackertours.hamburg.ccc.de/'#baseURL: 'https://staging.hackertours.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/'#" hugo.yaml sed -i "s#baseURL: 'https://hackertours.hamburg.ccc.de/'#baseURL: 'https://staging.hackertours.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/'#" hugo.yaml
- name: Build website
- name: Build website (prod)
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.ref_name == 'main'
run: | run: |
hugo hugo
- name: Build website (staging)
if: github.ref_name != 'main'
run: |
hugo server --buildFuture --buildDrafts
- name: Deploy - Prepare keys - name: Deploy - Prepare keys
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule' if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule'