nebula-release-plugin icon indicating copy to clipboard operation
nebula-release-plugin copied to clipboard

How to create release tags without pushing to the remote?

Open azurvii opened this issue 2 years ago • 2 comments

What I'd like to have is to have an option to make the final task tag local repo, plus whatever else final is doing, but without pushing the tag to the remote.

release.useLastTag=true stops the push, but it skips the tagging as well, which is something I'd like to have.

azurvii avatar May 04 '22 15:05 azurvii

This is also an obstacle for us. We don't have the Git credentials and need to use the command line git push --tags to do it after the tag is created.

EarthCitizen avatar Nov 02 '22 23:11 EarthCitizen

I found a hack, with git remote add origin . (. being the root of the git repo). This essentially points the remote origin back to local. With that, gradle final could do tagging without complaints.

Since it modifies the origin remote, I'd assume this would work only for local-only repos.

In any way, a switch from nebula release plugin is preferred.

azurvii avatar Jan 01 '23 02:01 azurvii