feat: publish exports to pages branch + deploy workflow #11

Merged
brad merged 4 commits from feat/pages-deploy into main 2026-02-27 13:52:11 -08:00
Owner

Summary

  • build.yml: After committing generated files, publishes assets/exports/ to an orphan pages branch. Prefers FORGEJO_TOKEN (triggers deploy) with github.token fallback.
  • deploy.yml (new): SSHes to a static host and clones/updates the pages branch at the configured path. Uses Alpine image, validates all required secrets before attempting deploy, and warns cleanly if any are missing.

Deploy push trigger is commented out by default — forked repos can uncomment when they have secrets configured and are ready for auto-deploy.

## Summary - **build.yml**: After committing generated files, publishes `assets/exports/` to an orphan `pages` branch. Prefers `FORGEJO_TOKEN` (triggers deploy) with `github.token` fallback. - **deploy.yml** (new): SSHes to a static host and clones/updates the `pages` branch at the configured path. Uses Alpine image, validates all required secrets before attempting deploy, and warns cleanly if any are missing. Deploy push trigger is **commented out by default** — forked repos can uncomment when they have secrets configured and are ready for auto-deploy.
build.yml now publishes assets/exports/ to an orphan pages branch
after each successful build. Uses FORGEJO_TOKEN for the push (to
trigger deploy), falls back to github.token if not set.

New deploy.yml SSHes to a static host and clones/updates the pages
branch. Uses Alpine image for speed, validates secrets before
attempting deploy, and exits cleanly if any are missing.

Push trigger on deploy.yml is commented out by default — uncomment
to enable auto-deploy when secrets are configured.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The pages branch is an orphan with no workflow files, so push events
don't trigger deploy.yml. Switch to using the workflow-dispatch action
(git.michaelsasser.org/actions/workflow-dispatch) from a separate job
in build.yml.

trigger-deploy job is commented out by default — forked repos uncomment
when ready. Deploy push trigger removed since API dispatch is cleaner.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The workflow-dispatch action requires bash, which Alpine doesn't
include.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
brad merged commit 6ef049111e into main 2026-02-27 13:52:11 -08:00
brad deleted branch feat/pages-deploy 2026-02-27 13:52:11 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
brad/brand-guidelines!11
No description provided.