Last active
August 21, 2019 11:54
-
-
Save kvasilopoulos/5a31e0978bf2b6da4b105d7acd3cfc49 to your computer and use it in GitHub Desktop.
Git tag after CRAN version acceptance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- If you’re not using GitHub or you want to create a tag without a release on GitHub. | |
You can use the follow git commands: --> | |
git tag -a v1.0.0 -m "Releasing version v1.0.0" | |
git push --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Alternatively Creating GitHub release through their web interface. | |
# You can read more on how to do this on the GitHub website https://developer.github.com/v3/repos/releases/#create-a-release. | |
gh("/repos/:owner/:repo/releases", owner = "kvasilopoulos", repo = "test", .method = "POST", tag_name = "v1.0.0", | |
target_commitish = "master", name = "Releasing version v1.0.0", body = "No Description required", | |
draft = false, prerelease = false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just realised that there is a usethis function for this reason | |
usethis::use_github_release() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment