cloudflare / cloudflare/wrangler-action

`pages deploy` does not deploy to production

Open
#337 2 comments 0 reactions 0 assignees View on GitHub
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}}
```

![image](https://github.com/user-attachments/assets/a7db7c53-0347-45f1-afc5-0e886ea8030b)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.