I want to tag a certain commit. When I push the tag, GitHub assumes it's a release, I don't want that.
Is there a way to just push the tag without releasing?
Releases are based on Git tags, which mark a specific point in your repository's history. A tag date may be different than a release date since they can be created at different times. For more information about viewing your existing tags, see "Viewing your repository's releases and tags."
GitHub Releases requires a tag.
About tags in GitHub Desktop Tags are associated with commits, so you can use a tag to mark an individual point in your repository's history, including a version number for a release. For more information about release tags, see "About releases."
You will have to explicitly push tags to a shared server after you have created them. This process is just like sharing remote branches — you can run git push origin <tagname> . If you have a lot of tags that you want to push up at once, you can also use the --tags option to the git push command.
GitHub, by default, creates a "release" point when you push a tag (like you can see in my project), but that doesn't mean it creates an actual release.
By default, a tag has one deliverable associated to the tag, and that is the compressed sources of the repo.
Creating a release means associating other deliverables (executables or other binaries) that you may wish to publish under that tag/release.
But you don't have to add any more files (other then the sources) if you don't want to.
So: by default, you don't have any release, only "release placeholders" (one per tag), for you to create a release.
As long as you don't upload a binary to a new release, the tags that you have pushed don't represent a release.
Update
As of 2017-05-31, Github support has stated it's "not currently possible as all tags will appear in [the release] list" - they said they'd pass it along as a feature request, though.
2018-04-17 A "new request on Github community" says it is in the feature request.
2021-10-04: a new public beta of GitHub Releases states:
Tags no longer show in the Release list view
Give our new Releases UI Refresh a look, we changed the default behavior and no longer show tags without releases in the release list
https://github.blog/2021-10-04-beta-github-releases-improving-release-experience/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With