Skip to content

Commit

Permalink
Update release workflow and Gradle version
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Apr 21, 2024
1 parent 512db6e commit 6aaddf6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 44 deletions.
39 changes: 6 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
id: build
env:
MEGA_VERSION: ${{ github.event.release.tag_name }}
run: ./gradlew releaseInfo build
- name: Publish release files (Fabric)
uses: Kir-Antipov/mc-publish@4db8bd126f74d5e143822181a2b1201308e2c796
run: ./gradlew build
- name: Publish release files
uses: Kir-Antipov/mc-publish@c0f30ad683340ba9a5374ba42157179f30171107
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -39,38 +39,11 @@ jobs:
modrinth-id: jjuIRIVr
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}

name: ${{ steps.build.outputs.MOD_VERSION }} (Fabric ${{ steps.build.outputs.MINECRAFT_VERSION }})
version: fabric-${{ steps.build.outputs.MOD_VERSION }}
game-versions: ${{ steps.build.outputs.MINECRAFT_VERSION }}
dependencies: |
ae2(required){curseforge:223794}{modrinth:XxWD5pD3}
appbot(optional){curseforge:610632}{modrinth:545hUrw9}
ae2wtlib(optional){curseforge:459929}{modrinth:pNabrMMw}
files: fabric/build/libs/*[0-9].jar
- name: Publish release files (Forge)
uses: Kir-Antipov/mc-publish@4db8bd126f74d5e143822181a2b1201308e2c796
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

curseforge-id: 622112
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}

modrinth-id: jjuIRIVr
modrinth-token: ${{ secrets.MODRINTH_API_KEY }}

name: ${{ steps.build.outputs.MOD_VERSION }} (Forge ${{ steps.build.outputs.MINECRAFT_VERSION }})
version: forge-${{ steps.build.outputs.MOD_VERSION }}
game-versions: ${{ steps.build.outputs.MINECRAFT_VERSION }}
loaders: |
forge
neoforge
dependencies: |
ae2(required){curseforge:223794}{modrinth:XxWD5pD3}
appmek(optional){curseforge:574300}{modrinth:IiATswDj}
appbot(optional){curseforge:610632}{modrinth:545hUrw9}
arseng(optional){curseforge:905641}{modrinth:IJI3QuK8}
ae2wtlib(optional){curseforge:459929}{modrinth:pNabrMMw}
cloth_config(required){curseforge:348521}{modrinth:9s6osm5g}
files: forge/build/libs/*[0-9].jar
# appbot(optional){curseforge:610632}{modrinth:545hUrw9}
# arseng(optional){curseforge:905641}{modrinth:IJI3QuK8}
ae2wtlib(optional){curseforge:459929}{modrinth:pNabrMMw}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 10 additions & 10 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down

0 comments on commit 6aaddf6

Please sign in to comment.