diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b88d668 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file diff --git a/build.gradle b/build.gradle index 4a7acf2..b98eb83 100644 --- a/build.gradle +++ b/build.gradle @@ -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' @@ -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) { diff --git a/changelog/1.2.1.md b/changelog/1.2.1.md new file mode 100644 index 0000000..fc4545f --- /dev/null +++ b/changelog/1.2.1.md @@ -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) \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index d42c309..ae9ad43 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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,)