Attempt at allowing gitlab packages
This commit is contained in:
parent
76ab3911df
commit
afe57e97eb
@ -19,11 +19,15 @@ build_test:
|
||||
- build/libs
|
||||
- latest.jar
|
||||
- latest-dev.jar
|
||||
only:
|
||||
- master
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
when: manual
|
||||
script:
|
||||
- gradle --build-cache modrinth curseforge
|
||||
only:
|
||||
- master
|
||||
|
||||
gradle-publish:
|
||||
script:
|
||||
- gradle publish
|
||||
|
16
build.gradle
16
build.gradle
@ -209,6 +209,22 @@ task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: jar) {
|
||||
build.dependsOn remapMavenJar
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url = "https://gitlab.com/api/v4/projects/25805200/packages/maven"
|
||||
name = "gitlab"
|
||||
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Job-Token"
|
||||
value = System.getenv("CI_JOB_TOKEN")
|
||||
}
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
artifact(remapMavenJar) {
|
||||
|
Loading…
Reference in New Issue
Block a user