The release will be tagged at the current commit and
named according to the name
and version
of the dpkg.
The GITHUB_PAT
environment variable must be set and the working directory
must be inside of a git repository with a GitHub remote.
Trying to create more than one release from the current commit will result in an error.
Examples
if (FALSE) { # \dontrun{
dpkg_gh_release(
as_dpkg(mtcars,
version = "0.0.0.9000", title = "Foofy Cars",
homepage = "https://github.com/cole-brokamp/dpkg",
description =
paste("# Foofy Cars\n",
"This is a test for the [dpkg](https://github.com/cole-brokamp/dpkg) package.",
collapse = "\n"
)
),
draft = FALSE
)
} # }
#> created release at: https://github.com/cole-brokamp/dpkg/releases/tag/mtcars-v0.0.0.9000