Closed mockitoguy closed 5 years ago
It looks like a tag is already created by creating the release on github via rest, isn't it?
see
and
https://developer.github.com/v3/repos/releases/#create-a-release
we have two options:
do not create a tag in our plugins since it looks like the tag is created during rest calls of creating a new release
we change the order: push the changes first and create the release via rest afterwards. Doing so the tag created via our plugin will be reused (see rest api doc)
The git tag was always created BEFORE upload to Bintray, because it's easier to undo git tag instead of release in Bintray / Maven Central.
And yes - upload release notes on GitHub needs to be done after creating and push the tag.
In shipkit-example it works: https://travis-ci.org/mockito/shipkit-example/jobs/497595910#L831
but the order of task execution is different.
So the task updateReleaseNotesOnGitHub
should depend on gitPush
:+1: yep, let's fix the task execution order.
I haven't dug deeper so it may be a red herring. Mockito build did not complete the release because the tag already existed: https://github.com/mockito/mockito/issues/1637