cloudflare / cloudflare/wrangler-action
`pages deploy` does not deploy to production
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to deploy to `production` (not `preview`). There doesn't seem to be an option to do so.
```yaml
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=app-${{env.ENV_NAME}}
```

Contributor guide
Research direction
Start at the `cloudflare/wrangler-action@v3` entry point and trace how its `command` input invokes `pages deploy dist --project-name=...`. Verify how production versus preview is selected, then confirm that the workflow can deploy the requested project to production and define the finished behavior in the issue's workflow example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd, cloud
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100