Attempt at allowing gitlab packages
This commit is contained in:
parent
76ab3911df
commit
afe57e97eb
@ -19,11 +19,15 @@ build_test:
|
|||||||
- build/libs
|
- build/libs
|
||||||
- latest.jar
|
- latest.jar
|
||||||
- latest-dev.jar
|
- latest-dev.jar
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
when: manual
|
when: manual
|
||||||
script:
|
script:
|
||||||
- gradle --build-cache modrinth curseforge
|
- 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
|
build.dependsOn remapMavenJar
|
||||||
|
|
||||||
publishing {
|
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 {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
artifact(remapMavenJar) {
|
artifact(remapMavenJar) {
|
||||||
|
Loading…
Reference in New Issue
Block a user