Skip to content

ci(release): auto-deploy the site on minor and major releases#160

Merged
x3ek merged 1 commit into
mainfrom
ci/auto-deploy-site-on-minor
Jul 4, 2026
Merged

ci(release): auto-deploy the site on minor and major releases#160
x3ek merged 1 commit into
mainfrom
ci/auto-deploy-site-on-minor

Conversation

@x3ek

@x3ek x3ek commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Completes the deploy formalization: engine releases with a zero patch digit (1.1.0, 2.0.0) dispatch the content repo's Deploy site workflow, which ships the exact released GHCR image to Fly. Patch releases (1.0.1...) deliberately do not auto-deploy; the content repo's manual workflow button covers those and rollbacks.

Wiring

  • Content repo side already live: deploy-site.yml (repository_dispatch engine-release + workflow_dispatch with a version input), FLY_API_TOKEN secret set from a scoped Fly deploy token.
  • This PR adds the sender: a deploy-site job gated on release_created and endsWith(version, '.0').
  • Requires a CONTENT_DISPATCH_TOKEN secret in this repo: fine-grained PAT scoped to squishmark-content with Contents read/write (repository_dispatch needs it). Until it's set, the job fails harmlessly on x.y.0 releases and the manual button still works.

Testing

The content-repo workflow was proven with a manual run deploying 1.0.0. The dispatch path gets its first live test on the next x.y.0 release.

— Claude

When a release with a zero patch digit publishes, dispatch the content
repo's deploy workflow so squishmark.dev picks up deliberate releases
on its own. Patch releases stay manual by design.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@x3ek x3ek merged commit 6beebe8 into main Jul 4, 2026
5 checks passed
@x3ek x3ek deleted the ci/auto-deploy-site-on-minor branch July 4, 2026 21:49
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