Skip to content

Automate site deployment with GitHub Actions#498

Open
oalders wants to merge 1 commit intomasterfrom
deployer
Open

Automate site deployment with GitHub Actions#498
oalders wants to merge 1 commit intomasterfrom
deployer

Conversation

@oalders
Copy link
Copy Markdown
Contributor

@oalders oalders commented Mar 28, 2026

Summary

  • Adds a GitHub Actions workflow that runs on push to master
  • Generates JSON metadata, builds the site with Hugo 0.159.1, and pushes to tpf/perl.com-staging
  • Replaces the manual make deploy process

Setup required

  1. Enable fine-grained PATs on the TPF org (Org Settings → Personal access tokens → Settings)
  2. Create a fine-grained PAT scoped to tpf/perl.com-staging with Contents read/write
  3. Add it as a repo secret called STAGING_PAT on this repo (Settings → Secrets → Actions)

Test plan

  • Configure STAGING_PAT secret
  • Merge to master and verify the action runs successfully
  • Verify perl.com-staging receives the built site

🤖 Generated with Claude Code

Automates the build and deploy process that was previously manual
via `make deploy`. On push to master, generates JSON metadata,
builds with Hugo 0.159.1, and pushes to tpf/perl.com-staging.

Requires a STAGING_PAT secret (fine-grained PAT scoped to
perl.com-staging) to be configured on the repo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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