This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix: Recipe output is multiplied by an error
- Loading branch information
Showing
7 changed files
with
87 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: validate gradle wrapper | ||
uses: gradle/actions/wrapper-validation@v3 | ||
|
||
- name: Setup Java 17 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
- name: make gradle wrapper executable | ||
if: ${{ runner.os != 'Windows' }} | ||
run: chmod +x ./gradlew | ||
|
||
- name: Build with Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Build | ||
run: ./gradlew build | ||
|
||
- name: Read Properties | ||
id: 'properties' | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: gradle.properties | ||
properties: 'mod_id mod_name' | ||
|
||
- name: Get Version | ||
id: var | ||
run: | | ||
MESSAGE=$(ls build/libs/* | grep sources.jar -v | grep shadow.jar -v | grep slim.jar -v | awk -F '${{ steps.properties.outputs.mod_id }}-|.jar' '{print $2}') | ||
echo version=$MESSAGE >> $GITHUB_OUTPUT | ||
- name: "publish md mod" | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
name: "${{ steps.properties.outputs.mod_name }} v${{ steps.var.outputs.version }}" | ||
version: ${{ steps.var.outputs.version }} | ||
game-versions: 1.20.1 | ||
version-type: release | ||
java: 17 | ||
loaders: forge | ||
files: build/libs/${{ steps.properties.outputs.mod_id }}-${{ steps.var.outputs.version }}.jar | ||
|
||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
modrinth-id: KvSy350p | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
curseforge-id: 1015315 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters