cloudflare / wrangler-action

🧙‍♀️ easily deploy cloudflare workers applications using wrangler and github actions
Apache License 2.0
1.18k stars 152 forks source link

🐛 BUG: use `wrangler pages deploy` instead of `wrangler pages publish` #275

Closed realguse closed 2 months ago

realguse commented 2 months ago

Which Cloudflare product(s) does this pertain to?

Pages, Other

What version(s) of the tool(s) are you using?

wrangler v3.63.1

What version of Node are you using?

v20.13.1

What operating system and version are you using?

macOs Sonoma 14.6 beta (23G5061b)

Describe the Bug

Observed behavior

When using cloudflare/pages-action it throws a warning saying that wrangler pages publish will be removed in the next major release and to use wrangler pages deploy instead.

Expected behavior

cloudflare/pages-action should use the command wrangler pages deploy instead.

Steps to reproduce

Have a cloudflare project with wrangler, a git repo with a workflow using cloudflare/pages-action and a cloudflare page of course.

Then try to run the workflow and look for a warning like this:

Screenshot 2024-07-08 at 2 14 18 PM

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

hellt commented 2 months ago

according to https://github.com/cloudflare/pages-action/issues/131#issuecomment-2203648174 the pages-action is going to be deprecated. Would be great to have some clarity about this

realguse commented 2 months ago

ok, since its going to be deprecated, ill just switch to the wrangler action anyways.