From 17591d3edc8908a6c5088c807dfbc88a300ab952 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 15 Apr 2024 17:14:18 +0200 Subject: [PATCH] add env for gh pages dev Signed-off-by: Tobias Brunner --- .github/workflows/hugo.yaml | 4 ++-- config/ghdev/hugo.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 config/ghdev/hugo.yaml diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 13a0ed1..d1f5df8 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -44,8 +44,8 @@ jobs: run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo env: - HUGO_ENVIRONMENT: production - HUGO_ENV: production + HUGO_ENVIRONMENT: ghdev + HUGO_ENV: ghdev run: | hugo \ --minify \ diff --git a/config/ghdev/hugo.yaml b/config/ghdev/hugo.yaml new file mode 100644 index 0000000..5eb02c1 --- /dev/null +++ b/config/ghdev/hugo.yaml @@ -0,0 +1 @@ +baseURL: https://k8up-io.github.io/website