Skip to content

Commit

Permalink
ci: hugo should run in subfolder and only once
Browse files Browse the repository at this point in the history
  • Loading branch information
asdofindia committed Aug 6, 2024
1 parent 673d876 commit fb9b068
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@ jobs:
cache-dependency-path: site/package-lock.json
- name: install npm modules
run: npm --prefix ./site install
- name: generate site
run: hugo -s site
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
TZ: Asia/Kolkata
run: |
hugo \
-s site \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
Expand Down

0 comments on commit fb9b068

Please sign in to comment.