mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Fix modrinth publishing again, set env variables + changelog
This commit is contained in:
1 parent
e617725c20
commit
e79e8edcb1
3 files changed
+22
-23
No files matched your search
@@ -23,9 +23,12 @@ jobs:
|
|||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
|
||||||
with:
|
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
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: HuskHomes Plugin
|
name: HuskHomes Plugin
|
||||||
path: target/HuskHomes-Plugin-*+rev.*.jar
|
path: target/HuskHomes-Plugin-*+rev.*.jar
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import org.apache.tools.ant.filters.ReplaceTokens
|
import org.apache.tools.ant.filters.ReplaceTokens
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
id 'com.modrinth.minotaur' version '2.+'
|
||||||
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
||||||
id 'org.ajoberstar.grgit' version '5.0.0'
|
id 'org.ajoberstar.grgit' version '5.0.0'
|
||||||
id 'java'
|
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")
|
logger.lifecycle("Building HuskHomes ${version} by William278")
|
||||||
|
|
||||||
@SuppressWarnings('GrMethodMayBeStatic')
|
@SuppressWarnings('GrMethodMayBeStatic')
|
||||||
|
|||||||
+1
-21
@@ -1,23 +1,3 @@
|
|||||||
plugins {
|
|
||||||
id 'com.modrinth.minotaur' version '2.+'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(path: ':bukkit', configuration: 'shadow')
|
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"))
|
|
||||||
Reference in new issue
Block a user