Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
35 changes: 29 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,39 @@ 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:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
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
1 change: 1 addition & 0 deletions ASSETS_LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
All rights reserved unless explicitly stated.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
}
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
Loading