Skip to content

Commit

Permalink
add github release config (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nefilim authored Dec 22, 2021
1 parent 10e0d4d commit b9799ff
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,23 @@ pluginBundle {
website = info.website
vcsUrl = info.website
tags = info.tags
}

githubRelease {
val gitHubTokenProp: String? by project

token(gitHubTokenProp) // This is your personal access token with Repo permissions
// You get this from your user settings > developer settings > Personal Access Tokens
owner("nefilim") // default is the last part of your group. Eg group: "com.github.breadmoirai" => owner: "breadmoirai"
repo("gradle-semver-plugin") // by default this is set to your project name
tagName("v${project.version}") // by default this is set to "v${project.version}"
targetCommitish("main") // by default this is set to "master"
body(changelog()) // by default this is empty
draft(false) // by default this is false
prerelease(false) // by default this is false

overwrite(false) // by default false; if set to true, will delete an existing release with the same tag and name
dryRun(false) // by default false; you can use this to see what actions would be taken without making a release
apiEndpoint("https://api.github.com") // should only change for github enterprise users
client // This is the okhttp client used for http requests
}

0 comments on commit b9799ff

Please sign in to comment.