Update to new build and release workflow.
release / build (21) (push) Successful in 19m56s

This commit is contained in:
2025-01-01 04:23:35 -07:00
parent 17deae5fe8
commit b19036bb90
4 changed files with 62 additions and 43 deletions
+18 -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
@@ -104,12 +108,21 @@ publishing {
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// 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)
}
}
}