feat(#204): implement preview deployments for pull requests#335
Open
Jessepriase wants to merge 1 commit into
Open
feat(#204): implement preview deployments for pull requests#335Jessepriase wants to merge 1 commit into
Jessepriase wants to merge 1 commit into
Conversation
Adds two GitHub Actions workflows and a usage guide to automatically deploy an isolated frontend preview for every pull request. - .github/workflows/preview.yml Triggers on pull_request (opened / synchronize / reopened). Installs dependencies, builds the Vite dashboard with testnet env vars, and deploys to a Cloudflare Pages branch named pr-<number> via cloudflare/wrangler-action. Posts a single bot comment to the PR containing the live preview URL and commit SHA; updates the same comment in place on every subsequent push (no duplicates). Uses a concurrency group so a fast-follow push cancels the in-flight deploy before starting a new one. - .github/workflows/preview-cleanup.yml Triggers on pull_request (closed) — covers both merge and manual close. Deletes the Cloudflare Pages branch deployment and edits the existing PR comment to show the preview has been removed. - PREVIEW_DEPLOYMENTS.md Documents how previews work, the required repository secrets (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, PREVIEW_EVENTS_API_URL), one-time Cloudflare Pages project setup, environment variables used in builds, and URL isolation between PRs.
|
@Jessepriase Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Adds two GitHub Actions workflows and a usage guide to automatically deploy an isolated frontend preview for every pull request.
.github/workflows/preview.yml Triggers on pull_request (opened / synchronize / reopened). Installs dependencies, builds the Vite dashboard with testnet env vars, and deploys to a Cloudflare Pages branch named pr- via cloudflare/wrangler-action. Posts a single bot comment to the PR containing the live preview URL and commit SHA; updates the same comment in place on every subsequent push (no duplicates). Uses a concurrency group so a fast-follow push cancels the in-flight deploy before starting a new one.
.github/workflows/preview-cleanup.yml Triggers on pull_request (closed) — covers both merge and manual close. Deletes the Cloudflare Pages branch deployment and edits the existing PR comment to show the preview has been removed.
PREVIEW_DEPLOYMENTS.md Documents how previews work, the required repository secrets (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, PREVIEW_EVENTS_API_URL), one-time Cloudflare Pages project setup, environment variables used in builds, and URL isolation between PRs.
closes [DevOps] Implement Preview Deployments for Pull Requests #204