From 8eaf568f7d8b9e9d9a1707020ac17148f6a7c927 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 13 Oct 2024 13:25:34 +0200 Subject: [PATCH] for PRs build future and drafts --- .forgejo/workflows/deploy.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'