Skip to content

Instantly share code, notes, and snippets.

@kvasilopoulos
Last active August 21, 2019 11:54
Show Gist options
  • Save kvasilopoulos/5a31e0978bf2b6da4b105d7acd3cfc49 to your computer and use it in GitHub Desktop.
Save kvasilopoulos/5a31e0978bf2b6da4b105d7acd3cfc49 to your computer and use it in GitHub Desktop.
Git tag after CRAN version acceptance
<!-- 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
# 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)
# 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