add publish configuration for github

This commit is contained in:
Dmytro authored and GitHub committed 2021-12-13 15:57:40 +02:00
1 parent df8a8cd6d0
commit ab0bf5a136
1 file changed
+15
+15
View File
@@ -42,6 +42,7 @@ plugins {
id("org.ajoberstar.grgit") version("3.1.1")
id("com.github.johnrengelman.shadow") version("4.0.4")
id("com.palantir.git-version") version("0.12.3")
id("maven-publish")
}
apply plugin: 'forge'
@@ -460,6 +461,20 @@ artifacts {
}
}
// publishing
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/octocat/hello-world"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
// Updating
task updateBuildScript {
doLast {