Skip to content

Commit

Permalink
use modmuss50/mod-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
MarbleGateKeeper committed Dec 18, 2023
1 parent 3f2cc45 commit 37bc4d9
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release
on: [workflow_dispatch]

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: temurin
cache: gradle

- name: Validate Gradle Wrapper Integrity
uses: gradle/wrapper-validation-action@v1

- name: Make Gradle wrapper executable
run: chmod +x ./gradlew

- name: Build & Release
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
run: ./gradlew build publishMods
29 changes: 29 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ buildscript {
classpath 'org.parchmentmc:librarian:1.+'
}
}
plugins {
id "me.modmuss50.mod-publish-plugin" version "0.3.5"
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'eclipse'
Expand Down Expand Up @@ -164,6 +167,32 @@ jar {

jar.finalizedBy('reobfJar')

publishMods {
file = tasks.jar.archiveFile
changelog = new File("changelog/${mod_version}.md").text
version = mod_version
type = STABLE
displayName = "Origins Classes Forge ${mod_version}"
modLoaders.add("forge")
modLoaders.add("neoforge")

curseforge {
projectId = "610127"
accessToken = providers.environmentVariable("CURSEFORGE_TOKEN")
minecraftVersions.add(mc_version)

requires {
slug = "origins-forge"
}
}

modrinth {
projectId = "HTjxjxqK"
accessToken = providers.environmentVariable("MODRINTH_TOKEN")
minecraftVersions.add(mc_version)
}
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down
5 changes: 5 additions & 0 deletions changelog/1.2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Origins Classes Forge 1.2.1
Update for Minecraft 1.20.1
### Bugfix
- Prevent the quality equipment from applying on already quality tools (By DabbingEevee)
- Fix Tetra mixin crash (by Ace The King)
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ org.gradle.daemon=false
# Mod Properties
maven_group=dev.limonblaze.originsclasses
archives_base_name=origins-classes-forge
mod_version=1.2.0
mod_version=1.2.1
mod_id=origins_classes
mod_author=LimonBlaze
mc_requirements=[1.20.1,)
Expand Down

0 comments on commit 37bc4d9

Please sign in to comment.