From ab0bf5a13650271a8b0fc3cea7c1dd47b6e9d7d1 Mon Sep 17 00:00:00 2001 From: Dmytro <13066272+TheElan@users.noreply.github.com> Date: Mon, 13 Dec 2021 15:57:40 +0200 Subject: [PATCH] add publish configuration for github --- build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build.gradle b/build.gradle index 18fedd3..8c16e97 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {