Co-authored-by: Dario <dario@bauschutt.org> Suggested-by: Dario <dario@bauschutt.org>
This commit is contained in:
parent
e568418a79
commit
b453a8e348
1 changed files with 7 additions and 4 deletions
|
@ -33,16 +33,19 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0 # pull full history for page lastmod by git commit date
|
||||
|
||||
- name: Patch baseURL (staging only)
|
||||
- name: Build website - prod
|
||||
run: |
|
||||
./fetch-calendar.sh
|
||||
hugo
|
||||
|
||||
- name: Build website - staging
|
||||
if: github.ref_name != 'main'
|
||||
run: |
|
||||
sed -i "s#baseURL = 'https://hamburg.ccc.de/'#baseURL = 'https://staging.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/'#" hugo.toml
|
||||
sed -i "s#index = true#index = false#" hugo.toml
|
||||
sed -i "s#follow = true#follow = false#" hugo.toml
|
||||
- name: Build website
|
||||
run: |
|
||||
./fetch-calendar.sh
|
||||
hugo
|
||||
hugo --buildFuture
|
||||
|
||||
- name: Deploy - Prepare keys
|
||||
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue