Fix modrinth publishing again, set env variables + changelog

This commit is contained in:
William278 committed 2022-09-02 23:52:20 +03:00
1 parent e617725c20
commit e79e8edcb1
3 files changed
+22 -23

No files matched your search

+5 -2
View File
@@ -23,9 +23,12 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build test
arguments: build test modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_CHANGELOG: ${{ join(github.event.commits.*.message, '<br>') }}
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: HuskHomes Plugin
path: target/HuskHomes-Plugin-*+rev.*.jar
path: target/HuskHomes-Plugin-*+rev.*.jar
+16
View File
@@ -1,6 +1,7 @@
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.modrinth.minotaur' version '2.+'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'org.ajoberstar.grgit' version '5.0.0'
id 'java'
@@ -100,6 +101,21 @@ subprojects {
}
}
tasks {
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "huskhomes"
versionType = "alpha"
gameVersions = ["1.16.5", "1.17.1", "1.18.2", "1.19.2"]
loaders = ["spigot", "paper", "purpur"]
versionName = "${project.version}"
versionNumber = "${project.version}"
versionType = "alpha"
uploadFile = file("$rootDir/target/HuskHomes-Plugin-${project.version}.jar")
changelog = System.getenv("MODRINTH_CHANGELOG")
}
}
logger.lifecycle("Building HuskHomes ${version} by William278")
@SuppressWarnings('GrMethodMayBeStatic')
+1 -21
View File
@@ -1,23 +1,3 @@
plugins {
id 'com.modrinth.minotaur' version '2.+'
}
dependencies {
implementation project(path: ':bukkit', configuration: 'shadow')
}
tasks {
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "huskhomes"
versionType = "alpha"
gameVersions = ["1.16.5", "1.17.1", "1.18.2", "1.19.2"]
loaders = ["spigot", "paper", "purpur"]
versionName = "${project.version}"
versionNumber = "${project.version}"
versionType = "alpha"
uploadFile = file("$rootDir/target/HuskHomes-Plugin-${project.version}.jar")
}
}
tasks.getByName("build").finalizedBy(tasks.getByName("modrinth"))
}