Skip to content

chore(deploy): deploys fire on merge to main only — drop pull_request preview deploys - #38

Merged
eaitbrahim merged 1 commit into
mainfrom
deploy-main-only
Aug 20, 2026
Merged

chore(deploy): deploys fire on merge to main only — drop pull_request preview deploys#38
eaitbrahim merged 1 commit into
mainfrom
deploy-main-only

Conversation

@eaitbrahim

Copy link
Copy Markdown
Contributor

What changes

  • Deploy (.github/workflows/deploy.yml) no longer triggers on pull_request. Production deploys now run only when a PR is merged to main (push), on the hourly content refresh, or via manual dispatch.
  • PR validation is unchanged: ci.yml runs fetch + type check + build on every PR and uploads a site-preview artifact (7-day retention) for inspection.

Why

  • Per-PR runs executed a full wrangler pages deploy to a publicly reachable preview URL for every push — unnecessary exposure and deploy churn when CI already proves the build.
  • The merge-to-main path already worked (every merged PR was followed by a push deploy); this removes the redundant third trigger.

Also

  • PRD FR-1 amended in place with a dated note (original wording preserved).

Verification

  • This PR itself should show a CI check and no Deploy check — the change demonstrated by its own run.
  • On merge, a push Deploy run must fire and deploy to production.

… preview deploys

The Deploy workflow no longer runs on pull_request. Production deploys now
happen exclusively on push to main (i.e. when a PR is merged), the hourly
content refresh, and manual dispatch. PRs stay fully validated by ci.yml —
fetch, type check, build — which also uploads a site-preview artifact for
inspection, so nothing is lost except the per-PR preview URL (which was
publicly reachable and burned a wrangler deploy per push).

FR-1 amended accordingly (dated, original wording preserved).
@sonarqubecloud

Copy link
Copy Markdown

@eaitbrahim
eaitbrahim merged commit cd9f615 into main Aug 20, 2026
2 checks passed
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