diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b202518..6897435 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,3 +73,26 @@ jobs: uses: Anvil-Dev/dedicated-server-launch-test@1.21.8-neoforge with: mod: build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-1.21.8-${{ steps.version.outputs.version }}.jar + + - name: publish neoforge mc mod + uses: Kir-Antipov/mc-publish@v3.3 + continue-on-error: true + with: + name: "${{ steps.properties.outputs.mod_name }} For NeoForge v${{ steps.version.outputs.version }}" + version: ${{ steps.version.outputs.version }} + game-versions: 1.21.8 + version-type: alpha + java: 21 + fail-mode: skip + changelog: ${{ github.event.release.body }} + + modrinth-id: Bl87I32T + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + modrinth-featured: true + + curseforge-id: 1343127 + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + + files: | + build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar + build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}-sources.jar diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ab3ec8..c081746 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,12 +54,6 @@ jobs: name: "${{ steps.properties.outputs.mod_name }} ${{ steps.version.outputs.version }}" path: build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-1.21.8-${{ steps.version.outputs.version }}.jar - - name: Upload Release Jar - uses: softprops/action-gh-release@v0.1.15 - with: - files: | - build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-1.21.8-${{ steps.version.outputs.version }}.jar - - name: Publish to maven run: ./gradlew publish env: @@ -67,3 +61,32 @@ jobs: MAVEN_USERNAME: ${{ secrets.MAVEN_USER }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASS }} continue-on-error: true + + - name: Upload Release Jar + uses: softprops/action-gh-release@v0.1.15 + with: + files: | + build/libs/${{ steps.properties.outputs.mod_id }}-neoforge-1.21.8-${{ steps.version.outputs.version }}.jar + + - name: publish neoforge mc mod + uses: Kir-Antipov/mc-publish@v3.3 + continue-on-error: true + with: + name: "${{ steps.properties.outputs.mod_name }} For NeoForge v${{ steps.version.outputs.version }}" + version: ${{ steps.version.outputs.version }} + game-versions: 1.21.8 + version-type: ${{ env.VERSION_TYPE }} + java: 21 + fail-mode: skip + changelog: ${{ github.event.release.body }} + + modrinth-id: Bl87I32T + modrinth-token: ${{ secrets.MODRINTH_TOKEN }} + modrinth-featured: true + + curseforge-id: 1343127 + curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} + + files: | + build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar + build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}-sources.jar diff --git a/ASSETS_LICENSE b/ASSETS_LICENSE new file mode 100644 index 0000000..4a703d8 --- /dev/null +++ b/ASSETS_LICENSE @@ -0,0 +1 @@ +All rights reserved unless explicitly stated. diff --git a/README.md b/README.md index e69de29..9535a8f 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,18 @@ +> Welcome to the Minecraft mod what named AnvilCraft: Lite's page! The mod is an anvil-centric vanilla survival expansion that +> includes: + +* Magnet: Draws an anvil into the air, recharging redstone and releasing it +* Crushing: Crushing rocks into powder +* Pressing: Squeezes the liquid out of the block +* Item Compression: Compacts loose items +* Cutting: Separates tight items +* Rolling: Pressing the material into thin sheets +* Bulging: The material is expanded with water +* Crystallization: Crystallization of the material with fine snow +* Pressing: Press two squares into one +* Block Break: Breaks blocks on the Stone Cutter + +## License + +* Code unless otherwise stated default to our [LICENSE file(LGPL-3.0)](./LICENSE) here +* Non-Code assets (Located here) go by our [ASSET_LICENSE file(ARR)](./ASSETS_LICENSE) here diff --git a/build.gradle b/build.gradle index 0c5ae00..5f024fb 100644 --- a/build.gradle +++ b/build.gradle @@ -44,6 +44,9 @@ jar { from(project.file("LICENSE")) { rename { "${it}_${modId}" } } + from(project.file("ASSETS_LICENSE")) { + rename { "${it}_${modId}" } + } from(project.file("README.md")) { rename { "${it}_${modId}" } } @@ -147,7 +150,8 @@ dependencies { jarJar "dev.anvilcraft.lib:anvillib-neoforge-1.21.8:1.4.0+build.167" // JEI - implementation("mezz.jei:jei-1.21.8-neoforge:24.0.0.2") + compileOnly "mezz.jei:jei-1.21.8-neoforge-api:24.0.0.2" + runtimeOnly "mezz.jei:jei-1.21.8-neoforge:24.0.0.2" } // This block of code expands all declared replace properties in the specified resource targets. @@ -161,7 +165,7 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources mod_id : mod_id, mod_name : mod_name, mod_license : mod_license, - mod_version : mod_version, + mod_version : version, mod_authors : mod_authors, mod_description : mod_description] inputs.properties replaceProperties