Skip to content

feat(ci): deploy pre-release releases to the dev Pages branch - #18

Merged
Bugs5382 merged 1 commit into
mainfrom
feat/17-deploy-dev-branch
Oct 16, 2026
Merged

Bugs5382 merged 1 commit into
mainfrom
feat/17-deploy-dev-branch

Conversation

@Bugs5382

Copy link
Copy Markdown
Contributor

What and why

Publishing an rc deployed to the same place a real release does: job-deploy-release.yaml always
used --branch=main, so an rc went straight to production at cryptos-pki.com. I want to look at an
rc before it's live, so this makes the deploy branch depend on whether the release is marked
pre-release.

  • Added a Determine the deploy branch step that reads github.event.release.prerelease and sets
    an output of dev or main.
  • The final pages deploy step now uses that output for --branch instead of a hardcoded main.
  • Everything else is unchanged: the pinned cloudflare/wrangler-action SHA, the separate
    list/create-project steps, and the secrets.
  • Updated the README's Deploy section and docs/deploy.md to explain the dev vs. production split.

Release Drafter still drafts plain SemVer tags; I tick "Set as a pre-release" by hand on the
GitHub release before publishing an rc.

Closes #17

Test plan

  • actionlint passes on the changed workflow and on the whole .github/workflows/ tree.
  • Next rc publish lands on dev.cryptos-pki-www.pages.dev (verified when I cut one).
  • Next normal release still lands on cryptos-pki.com (verified on the next real release).

Publishing an rc used to deploy to the same `main` branch as a real
release, so an rc landed on production the moment it was published.
Now the deploy workflow reads `github.event.release.prerelease` and
picks `dev` for a pre-release, `main` otherwise, so an rc goes to
dev.cryptos-pki-www.pages.dev and only a normal release reaches
cryptos-pki.com.

Refs #17

Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
@Bugs5382 Bugs5382 self-assigned this Oct 16, 2026
@Bugs5382 Bugs5382 added this to the v0.1.0 milestone Oct 16, 2026
@Bugs5382
Bugs5382 marked this pull request as ready for review October 16, 2026 05:42
@github-actions github-actions Bot added the enhancement New feature (feat). Minor version bump. label Oct 16, 2026
@Bugs5382
Bugs5382 merged commit 01ed830 into main Oct 16, 2026
16 checks passed
@Bugs5382
Bugs5382 deleted the feat/17-deploy-dev-branch branch October 16, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature (feat). Minor version bump.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ci): deploy pre-release website releases to the dev branch

1 participant