Repository navigation
Commit a2dcb34
committed
Fix artifact handling in shim deployment job
The `deploy-shim` job downloaded an artifact named `wp`, but the build
job uploads it as `wp-cli-phar` containing `wp-cli.phar`, so the download
failed and the subsequent `chmod`/`git add` had no file to operate on.
Download the correct artifact and rename the Phar to `wp`, which is what
`wp-cli/wp-cli-shim` declares as its `bin`.
Also align the job with the existing `deploy` job:
* Give it a distinct display name, as both were labelled "Deployment".
* Pin `actions/checkout`, `actions/download-artifact` and
`ad-m/github-push-action` to the same SHAs used elsewhere in this
workflow, instead of floating tags and `@master`.
* Push to `main` explicitly. Without it the action defaults to the
current ref, which would push to a branch named after the bundle's
ref rather than the shim's default branch.
* Push tags, so the "Tag stable release" step is no longer a no-op.
* Skip on `workflow_dispatch`, matching `deploy`.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RHtjyXkZh8X16sBgmidSQi1 parent 2f2fcab commit a2dcb34
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | | - | |
270 | | - | |
| 269 | + | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
284 | 288 | | |
285 | 289 | | |
286 | 290 | | |
| |||
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
301 | | - | |
| 305 | + | |
302 | 306 | | |
303 | 307 | | |
| 308 | + | |
| 309 | + | |
304 | 310 | | |
305 | 311 | | |
306 | 312 | | |
| |||
0 commit comments