Skip to content

Commit

Permalink
Fix default working directory, sparse-checkout the site subpath, set …
Browse files Browse the repository at this point in the history
…working directory for build step
  • Loading branch information
Jafner committed Jul 19, 2024
1 parent fa58788 commit fcffba5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/Jafner.dev_hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "sites/Jafner.dev"
working-directory: sites/Jafner.dev
env:
HUGO_VERSION: 0.121.2
steps:
Expand All @@ -33,7 +33,7 @@ jobs:
with:
submodules: 'true'
fetch-depth: 0
path: 'sites/Jafner.dev'
sparse-checkout: 'sites/Jafner.dev'
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
Expand All @@ -51,6 +51,7 @@ jobs:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
TZ: America/Los_Angeles
working-directory: sites/Jafner.dev
run: |
hugo \
--gc \
Expand Down

0 comments on commit fcffba5

Please sign in to comment.