Skip to content

Deploy docs from the prod environment - #7

Merged
devpparikh merged 1 commit into
mainfrom
docs-deploy-prod-env
Oct 19, 2026
Merged

devpparikh merged 1 commit into
mainfrom
docs-deploy-prod-env

Conversation

@devpparikh

Copy link
Copy Markdown
Owner

The first docs deploy on main failed because CLOUDFLARE_API_TOKEN was empty. Environment secrets are only available to jobs that declare that environment, and the docs job didn't declare one.

  • The workflow now has two jobs:
    • build runs on every trigger. On pushes it also uploads dist.
    • deploy runs only on pushes to main. It declares environment: prod, downloads the built site and runs wrangler deploy.
  • Because of this split, PR builds never get the prod secrets and never create deployments.

Before merging

Add CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID to a prod environment on this repo. At the moment the API reports no environments on devpparikh/paywright.

Test plan

Environment secrets are only exposed to jobs that declare the
environment. Split deploy into its own push-only job on 'prod' so PR
builds never see the secrets or create deployments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devpparikh
devpparikh merged commit e257d32 into main Oct 19, 2026
3 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