Skip to content

Commit

Permalink
Do not push to remote on release until -PpushToRemote is passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
renelink committed Aug 14, 2024
1 parent f16dd7a commit 1eb2fdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ configure(listOf(tasks.release, tasks.runBuildTasks)) {
}
}

val pushToRemoteName = if(project.findProperty("pushToRemote") != null) "origin" else ""

release {
tagTemplate = "v\${version}"

git {
pushToRemote = ""
pushToRemote = pushToRemoteName
}
}

0 comments on commit 1eb2fdf

Please sign in to comment.