Re-enable builds
This commit is contained in:
parent
567e2f1062
commit
ec5ce65a3d
2 changed files with 16 additions and 14 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
@ -17,14 +17,14 @@ jobs:
|
||||||
token: ${{ secrets.github_token }}
|
token: ${{ secrets.github_token }}
|
||||||
prefix: ${{ github.ref }}
|
prefix: ${{ github.ref }}
|
||||||
|
|
||||||
# - run: ./gradlew build publish --stacktrace
|
- run: ./gradlew build publish --stacktrace
|
||||||
# env:
|
env:
|
||||||
# MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
||||||
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
||||||
# MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
# SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
|
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
|
||||||
# SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
|
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
|
||||||
# CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
|
CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
14
build.gradle
14
build.gradle
|
@ -56,8 +56,7 @@ configurations {
|
||||||
}
|
}
|
||||||
|
|
||||||
def ENV = System.getenv()
|
def ENV = System.getenv()
|
||||||
def build_number = ENV.BUILD_NUMBER ?: "local"
|
|
||||||
version = "${version}+build.$build_number"
|
|
||||||
|
|
||||||
license {
|
license {
|
||||||
header file('HEADER')
|
header file('HEADER')
|
||||||
|
@ -68,9 +67,12 @@ license {
|
||||||
group = 'TechReborn'
|
group = 'TechReborn'
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
version = "5.0.0-alpha+1.16"
|
version = "5.0.0-alpha"
|
||||||
|
def build_number = ENV.BUILD_NUMBER ?: "local"
|
||||||
|
version = "${version}+build.$build_number"
|
||||||
|
|
||||||
apply plugin: "fabric-loom"
|
apply plugin: "fabric-loom"
|
||||||
|
apply plugin: "maven-publish"
|
||||||
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_16
|
sourceCompatibility = JavaVersion.VERSION_16
|
||||||
targetCompatibility = JavaVersion.VERSION_16
|
targetCompatibility = JavaVersion.VERSION_16
|
||||||
|
@ -112,7 +114,7 @@ allprojects {
|
||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
groupId project.name
|
groupId project.name
|
||||||
artifactId project.archivesBaseName
|
artifactId project.archivesBaseName + "-" + getBranch()
|
||||||
version project.version
|
version project.version
|
||||||
|
|
||||||
artifact(remapJar) {
|
artifact(remapJar) {
|
||||||
|
@ -257,7 +259,7 @@ curseforge {
|
||||||
id = "233564"
|
id = "233564"
|
||||||
changelog = "A changelog can be found at https://github.com/TechReborn/TechReborn"
|
changelog = "A changelog can be found at https://github.com/TechReborn/TechReborn"
|
||||||
releaseType = ENV.RELEASE_CHANNEL ?: "release"
|
releaseType = ENV.RELEASE_CHANNEL ?: "release"
|
||||||
addGameVersion "1.16.5"
|
addGameVersion "1.17"
|
||||||
addGameVersion "Fabric"
|
addGameVersion "Fabric"
|
||||||
|
|
||||||
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
|
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
|
||||||
|
@ -340,7 +342,7 @@ task compileRecipes {
|
||||||
// A task to ensure that the version being released has not already been released.
|
// A task to ensure that the version being released has not already been released.
|
||||||
task checkVersion {
|
task checkVersion {
|
||||||
doFirst {
|
doFirst {
|
||||||
def xml = new URL("https://maven.modmuss50.me/TechReborn/TechReborn-1.16/maven-metadata.xml").text
|
def xml = new URL("https://maven.modmuss50.me/TechReborn/TechReborn-1.17/maven-metadata.xml").text
|
||||||
def metadata = new XmlSlurper().parseText(xml)
|
def metadata = new XmlSlurper().parseText(xml)
|
||||||
def versions = metadata.versioning.versions.version*.text();
|
def versions = metadata.versioning.versions.version*.text();
|
||||||
if (versions.contains(version)) {
|
if (versions.contains(version)) {
|
||||||
|
|
Loading…
Reference in a new issue