Skip to content

Publish a version once, when its release is published - #175

Merged
rousso merged 1 commit into
developfrom
ci/publish-on-release-only
Sep 6, 2026
Merged

Publish a version once, when its release is published#175
rousso merged 1 commit into
developfrom
ci/publish-on-release-only

Conversation

@rousso

@rousso rousso commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The publish workflow deploys on a push to main as well as on a published release, so merging a release branch into main deploys the version, and publishing the GitHub release deploys the same coordinates again. With autoPublish set, the second attempt fails on a version that is already published.

This did not show until now because the release trigger listened for created, which does not fire when a release is saved as a draft and published later — so in practice only the push to main ever deployed. Now that the trigger is published, both fire.

Removing main from the push trigger leaves develop publishing snapshots and the release publishing versions, which is what the tag is for and how eforms-core-java already works. The 1.9.0 release of that library published itself correctly this way.

@rousso
rousso merged commit 95e6c70 into develop Sep 6, 2026
2 checks passed
@rousso
rousso deleted the ci/publish-on-release-only branch September 6, 2026 13:46
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