We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7d70e0 commit 672fa72Copy full SHA for 672fa72
1 file changed
build.gradle.kts
@@ -81,7 +81,8 @@ publishing {
81
repositories {
82
maven {
83
name = "GitHubPackages"
84
- version = System.getenv("GITHUB_REF")
+ val gitTag = System.getenv("GITHUB_REF")?.substringAfterLast('/')
85
+ if (gitTag != null) version = gitTag
86
url = uri("https://maven.pkg.github.com/${System.getenv("GITHUB_REPOSITORY")}")
87
credentials {
88
username = System.getenv("GITHUB_ACTOR")
0 commit comments