Update to new build and release workflow.
release / build (21) (push) Successful in 11m25s

This commit is contained in:
2025-01-01 04:16:17 -07:00
parent 37e2634f08
commit 679428c04f
4 changed files with 58 additions and 43 deletions
+14 -5
View File
@@ -3,6 +3,10 @@ plugins {
id 'maven-publish'
}
if (System.getenv("VERSION")) {
project.mod_version = System.getenv("VERSION")
}
version = "${project.mod_version}-${project.minecraft_version}"
group = project.maven_group
@@ -98,11 +102,16 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
maven {
name = "personal"
url = "https://maven.bigduckie.dev/releases"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
name = "Gitea"
url = uri("https://git.bigduckie.dev/api/packages/big-duckie/maven")
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv("MAVEN_TOKEN")}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}