Skip to content

Split Hugo CI into separate build and deploy workflows#7

Merged
HeyItsGilbert merged 2 commits into
mainfrom
ci/split-build-deploy-workflows
May 26, 2026
Merged

Split Hugo CI into separate build and deploy workflows#7
HeyItsGilbert merged 2 commits into
mainfrom
ci/split-build-deploy-workflows

Conversation

@HeyItsGilbert
Copy link
Copy Markdown
Member

Summary

  • Adds build.yml — triggers on pull_request, contents: read only, validates the site builds without deploying
  • Adds deploy.yml — triggers on push to main, contents: write, full build + commit to docs/
  • Removes hugo.yml — the combined workflow that ran deploy steps on PRs

Why

The old single workflow had contents: write permission on PR builds and would attempt the commit/push step regardless of trigger, which was unnecessary and a minor security concern. PRs now get a clean build-only check.

Test plan

  • Open a PR and confirm Build Hugo Site runs and passes without pushing anything
  • Merge to main and confirm Deploy Hugo Site runs and commits the built site to docs/

🤖 Generated with Claude Code

HeyItsGilbert and others added 2 commits May 23, 2026 07:06
No content files use raw HTML that requires the unsafe renderer —
the one exception (a 2008 podcast post with <p> and <br />) is
converted to plain markdown. Disabling unsafe prevents raw HTML/JS
in any markdown file from rendering, which limits the blast radius
of future content injection vulnerabilities.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Build runs on PRs (read-only) to validate the site compiles.
Deploy runs on push to main and commits the built site to docs/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@HeyItsGilbert HeyItsGilbert merged commit d5ad0cf into main May 26, 2026
1 check passed
@HeyItsGilbert HeyItsGilbert deleted the ci/split-build-deploy-workflows branch May 26, 2026 14:43
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