From 73330a0d2461c427eda034648286d5ebcc8a44b1 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Fri, 6 Dec 2024 23:33:32 -0800 Subject: [PATCH] fixup github ci --- .github/workflows/hugo.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 933f05eaa..300056b78 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -41,24 +41,26 @@ jobs: cache: npm cache-dependency-path: package.json - - name: Install PostCSS - run: npm install -D autoprefixer postcss postcss-cli + - run: npm install --omit=optional + - run: npm install -D autoprefixer postcss postcss-cli - name: Setup Pages id: pages - uses: actions/configure-pages@v3.0.6 + uses: actions/configure-pages@v5 + - name: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo env: + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache HUGO_ENVIRONMENT: production - HUGO_ENV: production run: | hugo \ - --gc \ - --baseURL "https://katzenpost.network/" - + --gc \ + --minify \ + --baseURL "https://katzenpost.network/" - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./public