Skip to content

ci: build the landing page on pull requests too - #3

Merged
tannevaled merged 1 commit into
mainfrom
ci/build-the-page-on-pull-request
Aug 20, 2026
Merged

tannevaled merged 1 commit into
mainfrom
ci/build-the-page-on-pull-request

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The workflow ran only on pushes to main, so a pull request touching the layout, the content or the Hugo version got no signal at all. This repository has open dependency PRs whose checks read "no checks" — which is not the same thing as green, and must not be merged as if it were.

Two changes, and only two

  • A pull_request trigger, so the existing build job runs on every PR.
  • deploy is guarded by if: push || workflow_dispatch, so a pull request stops after building and uploading the artifact and never replaces what is served.

Verified before being applied, not after

hugo --minify was run locally against this site and against all 195 ungated landing pages — and the cards in the produced HTML were counted, not just the exit status.

That distinction is not theoretical. On go-filesystems.github.io, hugo 0.155.0 exits 0 and writes no page at all; an exit-code-only check would have called it fixed. All 195 produced real content, between 1 and 43 cards each.

🤖 Generated with Claude Code

The workflow ran only on pushes to main, so a pull request touching the
layout, the content or the Hugo version got no signal at all. This
repository has open dependency PRs whose checks read "no checks", which
is not the same thing as green and must not be merged as if it were.

Two changes, and only two:

  - a pull_request trigger, so the existing build job runs on every PR;
  - deploy is guarded by `if: push || workflow_dispatch`, so a pull
    request stops after building and uploading the artifact and never
    replaces what is served.

Verified before being applied rather than after: `hugo --minify` was run
locally against this site and against all 195 ungated landing pages, and
the CARDS IN THE PRODUCED HTML were counted, not just the exit status.
That distinction is not theoretical -- on go-filesystems.github.io, hugo
0.155.0 exits 0 and writes no page at all, so an exit-code-only check
would have called it fine. All 195 produced real content.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 1958638 into main Aug 20, 2026
2 checks passed
@tannevaled
tannevaled deleted the ci/build-the-page-on-pull-request branch August 20, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant