fix: restore release deployment with Wrangler

Merged
BO
2mo ago
+5-4

What does this PR aim to accomplish?:

Restore the 3.7.0 release pipeline. Release run 35411776022 failed during job setup with Unable to resolve action cloudflare/pages-action, not found, before publishing anything.

How does this PR accomplish the above?:

  • Replace unavailable cloudflare/pages-action@v1 with cloudflare/wrangler-action@v3 using pages deploy . --project-name=xmoj-script --branch=master.
  • Preserve the existing Cloudflare account, API secret, directory and production branch.
  • Use Node 22 for Wrangler compatibility.
  • Add manual dispatch and trigger on release-workflow changes so merging this fix starts a fresh release run.
  • Keep the existing 3.7.0 version and full release notes since stable 3.6.0 unchanged.

Validation: parsed the workflow YAML and checked its triggers and deployment inputs against the Wrangler action manifest and official usage. Live release/deployment verification follows merge. This hotfix targets master because the failing production workflow must be replaced; no userscript changes.


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributor's guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented on my proposed changes within the code. Not applicable to this small workflow configuration change.
  3. I have tested my changes. Workflow parsing and input validation passed; live deployment is pending.
  4. I am willing to help maintain this change if there are issues with it later. Future maintenance commitment remains with maintainers.
  5. It is compatible with the GNU General Public License v3.0.
  6. I have squashed any insignificant commits. One focused commit.
  7. I have checked that another pull request for this purpose does not exist.
  8. I have considered and confirmed that this submission will be valuable to others.
  9. I accept that this submission may not be used, and the pull request can be closed at the will of the maintainer.
  10. I give this submission freely and claim no ownership to its content.
  11. I have verified that my changes work correctly in both the new UI and the old/classic UI. Not applicable: CI-only change, no browser behavior modified.

  • I have read the above and my PR is ready for review. Check this box to confirm

Summary by Sourcery

Restore the release pipeline by switching Cloudflare deployments to Wrangler and making the workflow easier to rerun after fixes.

Bug Fixes:

  • Restore release deployments by replacing the unavailable Cloudflare Pages action with Wrangler.

Enhancements:

  • Update the release workflow to use Node.js 22 and support manual or workflow-change-triggered runs.

CI:

  • Expand release workflow triggers to include manual dispatches and changes to the workflow configuration.

Deployment:

  • Deploy the production Pages site through Wrangler while preserving the existing project, account, credentials, and master branch settings.

Summary by cubic

Replaces the unavailable cloudflare/pages-action@v1 with cloudflare/wrangler-action@v3 to restore the 3.7.0 release pipeline.

  • Deploys via pages deploy . --project-name=xmoj-script --branch=master, keeping the existing Cloudflare account, API token, directory, and production branch.
  • Moves the workflow to Node 22 for Wrangler compatibility.
  • Adds workflow_dispatch and a trigger on .github/workflows/Release.yml changes so merging this fix starts a fresh release run.
  • Keeps the existing 3.7.0 version and release notes; live deployment still needs verification after merge.