Skip to content

ci(release): skip duplicate asset upload in publish workflow#80

Merged
lukaszlenart merged 1 commit into
mainfrom
ci/release-skip-duplicate-upload
Apr 28, 2026
Merged

ci(release): skip duplicate asset upload in publish workflow#80
lukaszlenart merged 1 commit into
mainfrom
ci/release-skip-duplicate-upload

Conversation

@lukaszlenart
Copy link
Copy Markdown
Member

@lukaszlenart lukaszlenart commented Apr 28, 2026

Summary

The two-phase release setup attached the plugin zip to the GitHub
pre-release in prepare_release.yml, then release.yml tried to
upload the same file again on promotion — failing the v261.19017.1
publish run with asset under the same name already exists: [struts2-261.19017.1.zip].

This removes the redundant Upload Release Asset step. The Marketplace
publish (the only step that needs to happen on promotion) already runs
before it, and the asset PMC voted on stays untouched.

See failing run: https://github.com/apache/struts-intellij-plugin/actions/runs/25051059276/job/73378668748

Test plan

  • Next prepare → promote cycle completes without the upload error
  • Changelog-update PR is created on promotion (was skipped this time due to the upload failure)

The Prepare Release workflow already attaches the plugin zip to the
GitHub pre-release. Re-uploading from the publish workflow fails with
"asset under the same name already exists" once the pre-release is
promoted. Removing the redundant step also keeps the published bits
identical to what PMC voted on.
@lukaszlenart lukaszlenart enabled auto-merge (squash) April 28, 2026 12:28
@github-actions
Copy link
Copy Markdown

🔌 Plugin artifact ready for testing!

Download from Actions artifacts

Artifact: struts2-261.19017.1

@lukaszlenart lukaszlenart merged commit 8ac1cc9 into main Apr 28, 2026
5 checks passed
@lukaszlenart lukaszlenart deleted the ci/release-skip-duplicate-upload branch April 28, 2026 12:39
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.

1 participant