modrinth upload
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -26,6 +26,11 @@ jobs:
|
||||
with:
|
||||
name: md5sum.txt
|
||||
path: md5sum.txt
|
||||
- name: Modrinth
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_PAT }}
|
||||
run: ./gradlew modrinth
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
||||
11
build.gradle
11
build.gradle
@@ -1,6 +1,7 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.2-SNAPSHOT'
|
||||
id 'com.diffplug.spotless' version '6.19.0'
|
||||
id "com.modrinth.minotaur" version "2.+"
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
@@ -50,3 +51,13 @@ spotless {
|
||||
formatAnnotations()
|
||||
}
|
||||
}
|
||||
|
||||
import com.modrinth.minotaur.dependencies.ModDependency
|
||||
modrinth {
|
||||
token = System.getenv("MODRINTH_TOKEN")
|
||||
projectId = 'C1naQCmt'
|
||||
uploadFile = remapJar
|
||||
gameVersions = ['1.20.2']
|
||||
loaders = ['fabric']
|
||||
dependencies = []
|
||||
}
|
||||
|
||||
@@ -13,6 +13,6 @@ malilib_version = 0.16.2-nyan.6
|
||||
|
||||
minecraft_version_out = 1.20.2
|
||||
minecraft_version = 1.20.2
|
||||
mappings_version = 1.20.2+build.1
|
||||
mappings_version = 1.20.2+build.4
|
||||
fabric_loader_version = 0.14.22
|
||||
mod_menu_version = 8.0.0
|
||||
|
||||
Reference in New Issue
Block a user