Skip to content

Conversation

@g497813927
Copy link

Update GitHub Actions of the page deploy to fix warning of Deprecated: "wrangler pages publish" is deprecated

Update GitHub Actions of the page deploy to fix warning of Deprecated:
"wrangler pages publish" is deprecated
Copilot AI review requested due to automatic review settings December 29, 2025 07:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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@v1 with cloudflare/wrangler-action@v3
  • Converted from declarative parameters (projectName, directory, branch) to command-based syntax using pages 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.

Comment on lines +124 to +125
command:
pages deploy apps/web/dist --project-name "${{ steps.cfg.outputs.pages_project_name }}" --branch main
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Suggested change
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

Copilot uses AI. Check for mistakes.
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