use_github_release: Publish a GitHub release

View source: R/release.R

use_github_releaseR Documentation

Publish a GitHub release

Description

Pushes the current branch (if safe) then publishes a GitHub release for the latest CRAN submission.

If you use devtools::submit_cran() to submit to CRAN, information about the submitted state is captured in a CRAN-SUBMISSION file. use_github_release() uses this info to populate the GitHub release notes and, after success, deletes the file. In the absence of such a file, we assume that current state (SHA of HEAD, package version, NEWS) is the submitted state.

Usage

use_github_release(publish = TRUE)

Arguments

publish

If TRUE, publishes a release. If FALSE, creates a draft release.


r-lib/usethis documentation built on Nov. 28, 2024, 7:11 a.m.