This commit is contained in:
parent
3e50cb284a
commit
8eaf568f7d
|
@ -36,9 +36,15 @@ jobs:
|
|||
if: github.ref_name != 'main'
|
||||
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
|
||||
- name: Build website
|
||||
|
||||
- name: Build website (prod)
|
||||
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.ref_name == 'main'
|
||||
run: |
|
||||
hugo
|
||||
- name: Build website (staging)
|
||||
if: github.ref_name != 'main'
|
||||
run: |
|
||||
hugo server --buildFuture --buildDrafts
|
||||
|
||||
- name: Deploy - Prepare keys
|
||||
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule'
|
||||
|
|
Loading…
Reference in a new issue