ci: Update page deploy for GitHub Actions#2
Conversation
Update GitHub Actions of the page deploy to fix warning of Deprecated: "wrangler pages publish" is deprecated
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Actions workflow to migrate from the deprecated cloudflare/pages-action@v1 to cloudflare/wrangler-action@v3, addressing the "wrangler pages publish" deprecation warning. The migration changes the deployment step to use the newer wrangler action with a command-based approach.
- Replaced
cloudflare/pages-action@v1withcloudflare/wrangler-action@v3 - Converted from declarative parameters (
projectName,directory,branch) to command-based syntax usingpages deploy - Maintained all essential deployment parameters (API token, account ID, project name, branch, and directory)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| command: | ||
| pages deploy apps/web/dist --project-name "${{ steps.cfg.outputs.pages_project_name }}" --branch main |
There was a problem hiding this comment.
The command syntax appears to be formatted incorrectly. In YAML, when the command value spans multiple lines like this with additional indentation, it should either be a single line or use proper YAML multiline syntax. The current format may cause the action to fail or misinterpret the command. The command should be on a single line like: command: pages deploy apps/web/dist --project-name "${{ steps.cfg.outputs.pages_project_name }}" --branch main
| command: | |
| pages deploy apps/web/dist --project-name "${{ steps.cfg.outputs.pages_project_name }}" --branch main | |
| command: pages deploy apps/web/dist --project-name "${{ steps.cfg.outputs.pages_project_name }}" --branch main |
Update GitHub Actions of the page deploy to fix warning of Deprecated: "wrangler pages publish" is deprecated