From fcffba5e6d3a642ebe25c486d5e8ae2746eb992c Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 18 Jul 2024 21:16:26 -0700 Subject: [PATCH] Fix default working directory, sparse-checkout the site subpath, set working directory for build step --- .github/workflows/Jafner.dev_hugo.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Jafner.dev_hugo.yaml b/.github/workflows/Jafner.dev_hugo.yaml index c3b262d2..2584d8a1 100644 --- a/.github/workflows/Jafner.dev_hugo.yaml +++ b/.github/workflows/Jafner.dev_hugo.yaml @@ -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: @@ -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 \ @@ -51,6 +51,7 @@ jobs: HUGO_ENVIRONMENT: production HUGO_ENV: production TZ: America/Los_Angeles + working-directory: sites/Jafner.dev run: | hugo \ --gc \