mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-14 01:24:11 +00:00
Publish to maven central (#127)
This commit is contained in:
1 parent
8caaaaa62d
commit
a57c4fbb43
3 files changed
+38
-1
No files matched your search
@@ -13,4 +13,9 @@ jobs:
|
||||
env:
|
||||
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
||||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||
MAVEN_CENTRAL_URL: ${{ secrets.MAVEN_CENTRAL_URL }}
|
||||
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
|
||||
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
|
||||
SIGNING_SERVER: ${{ secrets.SIGNING_SERVER }}
|
||||
SIGNING_PGP_KEY: ${{ secrets.SIGNING_PGP_KEY }}
|
||||
@@ -11,6 +11,10 @@ buildscript {
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "me.modmuss50.remotesign" version "0.4.0"
|
||||
}
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
// Apply plugin
|
||||
@@ -505,9 +509,27 @@ publishing {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ENV.MAVEN_CENTRAL_URL) {
|
||||
repositories.maven {
|
||||
name "central"
|
||||
url ENV.MAVEN_CENTRAL_URL
|
||||
credentials {
|
||||
username ENV.MAVEN_CENTRAL_USERNAME
|
||||
password ENV.MAVEN_CENTRAL_PASSWORD
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
remoteSign {
|
||||
requestUrl = ENV.SIGNING_SERVER
|
||||
pgpAuthKey = ENV.SIGNING_PGP_KEY
|
||||
useDummyForTesting = ENV.SIGNING_SERVER == null
|
||||
sign publishing.publications.developer
|
||||
}
|
||||
|
||||
// A task to ensure that the version being released has not already been released.
|
||||
task checkVersion {
|
||||
doFirst {
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
pluginManagement {
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
maven {
|
||||
name = 'Fabric'
|
||||
url = 'https://maven.fabricmc.net/'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = name
|
||||
Reference in new issue
Block a user