diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index c2c1e8f..03d0706 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -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'