Update publish job

This commit is contained in:
JFronny 2021-04-11 16:13:47 +02:00
parent 24a5c7b9de
commit ac72f8d596
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5

View File

@ -74,7 +74,15 @@ publishing {
// select the repositories you want to publish to // select the repositories you want to publish to
repositories { repositories {
// uncomment to publish to the local maven maven {
// mavenLocal() url "https://gitlab.example.com/api/v4/projects/25805200/packages/maven"
credentials(HttpHeaderCredentials) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN") // the variable resides in ~/.gradle/gradle.properties
}
authentication {
header(HttpHeaderAuthentication)
}
}
} }
} }