Attempt at allowing gitlab packages

This commit is contained in:
JFronny 2021-09-27 21:12:46 +02:00
parent 76ab3911df
commit afe57e97eb
No known key found for this signature in database
GPG Key ID: BEC5ACBBD4EE17E5
2 changed files with 22 additions and 2 deletions

View File

@ -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

View File

@ -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) {