fix(ci): replace archived upload-release-asset with gh CLI#1935
Open
faisalahammad wants to merge 1 commit into
Open
fix(ci): replace archived upload-release-asset with gh CLI#1935faisalahammad wants to merge 1 commit into
faisalahammad wants to merge 1 commit into
Conversation
actions/upload-release-asset@v1 is archived and stuck on Node 12. Use gh release upload instead so release zips still attach as stream.zip.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the archived
actions/upload-release-asset@v1step in the WP.org deploy workflow withgh release upload. The old action is unmaintained and triggers Node 12 deprecation warnings on every release run. Behavior stays the same: the zip from the 10up deploy action is still attached to the GitHub release asstream.zip.Fixes #1526
Changes
.github/workflows/deploy-to-wp-org.ymlBefore:
After:
Why: Drop the archived third-party action.
ghis already on GitHub-hosted runners, and values go throughenvso expressions are not interpolated into the shell script.Testing
Test 1: Disposable pre-release
v0.0.0-test-1526).release: published.upload-release-assetwarning.stream.zipis attached and downloads cleanly.Result: release asset uploads via
gh; WP.org stays dry-run for pre-releases.