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