Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reordered release actions #6

Merged
merged 1 commit into from
Oct 27, 2020
Merged

Reordered release actions #6

merged 1 commit into from
Oct 27, 2020

Conversation

mockitoguy
Copy link
Contributor

Based the experience from Mockito project let's try the approach to perform "bintrayUpload" before tagging the release in GitHub.

Originally we thought that tagging before artifact publishing is a good idea. Bad tag is easier to revert than reverting binary artifacts publish. In fact, we cannot unpublish artifacts from some repositories, such as Maven Central. In practice though, tagging almost never fails. Therefore, let's run the task that may fail before tagging. This way, in case of a failure, there is less manual fixing (removing tags/release notes from GH) and less confusion to our end users (no more releases on GH that don't have any artifacts).

Based the experience from Mockito project let's try the approach to perform "bintrayUpload" *before* tagging the release in GitHub.

Originally we thought that tagging *before* artifact publishing is a good idea. Bad tag is easier to revert than reverting binary artifacts publish. In fact, we cannot unpublish artifacts from some repositories, such as  Maven Central. In practice though, tagging almost never fails. Therefore, let's run the task that *may* fail before tagging. This way, in case of a failure, there is less manual fixing (removing tags/release notes from GH) and less confusion to our end users (no more releases on GH that don't have any artifacts).
@mockitoguy mockitoguy merged commit 9dab39c into master Oct 27, 2020
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.

2 participants