ci: add Cloudflare Pages deploy step#4
Merged
Merged
Conversation
Restores automated deployment for the production site at pilotprotocol.pages.dev. The deploy was lost when deploy-website.yml was removed (PILOT-169) and never re-wired after the web4 → website split. The new step runs only on push-to-main (forks/PRs are skipped — they don't have the secrets and shouldn't publish to production anyway). Uses cloudflare/wrangler-action@v3 with the new CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets now configured on this repo.
d4c85b6 to
8aead29
Compare
3 tasks
TeoSlayer
added a commit
that referenced
this pull request
May 29, 2026
PR #4 added the deploy step but the wrangler-action does not auto-post a PR comment, so reviewers can't see the preview URL without digging into workflow logs (verified on PRs #12-14: deploy succeeded, comment missing). This adds a sticky comment step that uses the deployment-url output from the wrangler-action and posts (or updates) a single comment per PR via marocchino/sticky-pull-request-comment@v2. Also bumps the workflow's permissions to include pull-requests: write, which is required for the comment step. Co-authored-by: Teodor Calin <teodor@vulturelabs.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Cloudflare Pages deploy step to `ci.yml` so push-to-main automatically publishes the built site to pilotprotocol.pages.dev. The deploy was lost when deploy-website.yml was removed (PILOT-169) and never re-wired after the web4 → website split — today's merged docs PRs (#1, #2, #3) are sitting in main but not live.
Wiring
Token scope verified
Test plan