Skip to content

Commit

Permalink
chore: Update Hugo workflow and configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed Jul 15, 2024
1 parent 04b9a7b commit bc0a92b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,19 @@ jobs:
id: pages
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
working-directory: ./docs
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
working-directory: ./docs
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
working-directory: ./docs
- name: ls ./docs/public
run: echo 'ls ./docs/public' && ls ./docs/public
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit bc0a92b

Please sign in to comment.