From 1fa5f447502e5d62795a5ec18b0fa552110e00a6 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Thu, 23 Oct 2025 03:39:11 +0100 Subject: [PATCH 1/2] ci: fix pagefind command --- .github/workflows/hugo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 3fa17c2..e938782 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -53,10 +53,10 @@ jobs: HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache HUGO_ENVIRONMENT: production run: | - npm_config_yes=true npx pagefind --site 'public' --output-path 'static/pagefind' hugo \ --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" + npm_config_yes=true npx pagefind --site 'public' --output-path 'public/pagefind' - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: From 2e165e86368602497fc93c43bfe5aa035d56e5a1 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Thu, 23 Oct 2025 03:42:35 +0100 Subject: [PATCH 2/2] update --- .github/workflows/hugo.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index e938782..1566be2 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -5,6 +5,8 @@ on: # Runs on pushes targeting the default branch push: branches: ["main"] + pull_request: + branches: ["main"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -69,6 +71,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build + if: github.ref == 'refs/heads/main' steps: - name: Deploy to GitHub Pages id: deployment