Skip to content

Commit

Permalink
Update hugo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sairampillai authored Dec 22, 2023
1 parent 68ecc99 commit 1fd31af
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ defaults:
jobs:
# Build job
build:
defaults:
run:
working-directory: sairampillai
# defaults:
# run:
# working-directory: sairampillai
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.120.4
Expand All @@ -50,18 +50,21 @@ jobs:
id: pages
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
working-directory: ./sairampillai
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
working-directory: ./sairampillai
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
working-directory: ./sairampillai
with:
path: ./public

Expand Down

0 comments on commit 1fd31af

Please sign in to comment.