Skip to content

Conversation

@masteradhoc
Copy link
Contributor

Fixes #655

What?

Updates the GitHub Actions deploy workflow to replace the archived actions/upload-release-asset action with the maintained softprops/action-gh-release action for uploading release assets.

Why?

The actions/upload-release-asset action is archived and no longer maintained. Its own documentation recommends migrating to softprops/action-gh-release. Continuing to rely on an archived action poses maintenance and reliability risks for future releases.

How?

Replaced actions/upload-release-asset@v1 with softprops/action-gh-release@v2.

  • Added a small preparation step to rename the generated ZIP file so the uploaded release asset keeps the existing, expected name (.zip).
  • Removed deprecated inputs (upload_url, asset_path, asset_name, asset_content_type) that are specific to the old action and not used by action-gh-release.

Testing Instructions

  1. Create and push a tag (e.g. git tag vX.Y.Z && git push origin vX.Y.Z).
  2. Verify the GitHub Actions workflow completes successfully.
  3. Confirm a GitHub Release exists for the tag.
  4. Confirm the release contains an asset named .zip with the expected contents.

Screenshots or screencast

Changelog Entry

Changed – Replace deprecated GitHub Actions release asset upload step with a maintained alternative.

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: masteradhoc <masteradhoc@git.wordpress.org>
Co-authored-by: kasparsd <kasparsd@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@jeffpaul jeffpaul added this to the 0.15.0 milestone Feb 2, 2026
Copy link
Collaborator

@kasparsd kasparsd left a comment

Choose a reason for hiding this comment

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

We're not really relying on the GitHub release artifacts so we can test this with the next release.

If things fail, we can attach the correct one manually.

@kasparsd kasparsd merged commit 552b44d into WordPress:master Feb 9, 2026
28 checks passed
@masteradhoc masteradhoc deleted the patch-2 branch February 9, 2026 18:10
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.

Replace actions/upload-release-asset with softprops/action-gh-release in deploy.yml

3 participants