Skip to content

Commit

Permalink
Update mod-publish.yml
Browse files Browse the repository at this point in the history
I don't know what I did previously but this is the fix lol
  • Loading branch information
LeoBeliik authored Oct 23, 2024
1 parent ae80470 commit a2aad6c
Showing 1 changed file with 42 additions and 61 deletions.
103 changes: 42 additions & 61 deletions .github/workflows/mod-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,70 +11,51 @@ jobs:
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '21'

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

- name: Build with Gradle
run: ./gradlew --max-workers 1 build -x :Common:compileJava

- name: Collect version information
run: |
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '21'
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew --max-workers 1 build -x :Common:compileJava
- name: Collect version information
run: |
set_var() {
echo $1="$2"
echo $1="$2" >> $GITHUB_ENV
declare -g $1="$2"
}
set_var JAR_FILE $(eval echo fabric/build/libs/ExtremeSoundMuffler-*_*-*.jar)
set_var MOD_VERSION $(echo ${JAR_FILE%.*} | cut -d- -f2)
- name: Publish Minecraft Mods NeoForge Edition
uses: Kir-Antipov/[email protected]
with:
files: neoforge/build/libs/!(*-@(dev|sources|javadoc)).jar

modrinth-id: 5IIKsxiL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

curseforge-id: 363363
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: Extreme sound muffler ${{env.MOD_VERSION}} - NeoForge ${{github.ref_name}}
loaders: neoforge
game-versions: ${{github.ref_name}}
version: ${{env.MOD_VERSION}}-${{github.ref_name}}
java: Java 21
modrinth-featured: false
changelog-file: CHANGELOG.md

- name: Publish Minecraft Mods Forge Edition
uses: Kir-Antipov/[email protected]
with:
files: forge/build/libs/!(*-@(dev|sources|javadoc)).jar

modrinth-id: 5IIKsxiL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

curseforge-id: 363363
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: Extreme sound muffler ${{env.MOD_VERSION}} - Forge ${{github.ref_name}}
loaders: forge
game-versions: ${{github.ref_name}}
version: ${{env.MOD_VERSION}}-${{github.ref_name}}
java: Java 21
modrinth-featured: false
changelog-file: CHANGELOG.md

- name: Publish Minecraft Mods Fabric Edition
uses: Kir-Antipov/[email protected]
with:
set_var MOD_VERSION $(echo "$JAR_FILE" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
- name: Publish Minecraft Mods NeoForge Edition
uses: Kir-Antipov/[email protected]
with:
files: neoforge/build/libs/!(*-@(dev|sources|javadoc)).jar

modrinth-id: 5IIKsxiL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

curseforge-id: 363363
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

name: Extreme sound muffler ${{env.MOD_VERSION}} - NeoForge ${{github.ref_name}}
loaders: neoforge
game-versions: ${{github.ref_name}}
version: ${{env.MOD_VERSION}}-${{github.ref_name}}
java: Java 21
modrinth-featured: false
changelog-file: CHANGELOG.md

- name: Publish Minecraft Mods Fabric Edition
uses: Kir-Antipov/[email protected]
with:
files: fabric/build/libs/!(*-@(dev|sources|javadoc)).jar

modrinth-id: 5IIKsxiL
Expand All @@ -90,8 +71,8 @@ jobs:
java: Java 21
modrinth-featured: false
changelog-file: CHANGELOG.md

- name: Cleanup Gradle Cache
run: ./gradlew --stop |
- name: Cleanup Gradle Cache
run: ./gradlew --stop |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties

0 comments on commit a2aad6c

Please sign in to comment.