diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 5571c560..bba641cb 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -50,8 +50,10 @@ jobs: id: pages uses: actions/configure-pages@v4 - name: Install Node.js dependencies + working-directory: ./site run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Build with Hugo + working-directory: ./site env: # For maximum backward compatibility with Hugo modules HUGO_ENVIRONMENT: production @@ -64,7 +66,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: ./public + path: ./site/public # Deployment job deploy: