1010
1111jobs :
1212 build :
13- name : Build on ${{ matrix.os }}
14- runs-on : ${{ matrix.os }}
15- strategy :
16- fail-fast : false
17- matrix :
18- os : [ubuntu-latest, windows-latest, macos-latest]
13+ name : Build Client
14+ runs-on : ubuntu-latest
1915
2016 steps :
2117 - name : Checkout Repository
@@ -24,29 +20,21 @@ jobs:
2420 - name : Set up JDK 8
2521 uses : actions/setup-java@v4
2622 with :
27- distribution : ' zulu '
23+ distribution : ' temurin '
2824 java-version : ' 8'
2925 cache : ' gradle'
3026
3127 - name : Make gradlew executable
32- if : runner.os != 'Windows'
3328 run : chmod +x gradlew
3429
3530 - name : Build with Gradle
36- shell : bash
3731 run : ./gradlew build --no-daemon -Dorg.gradle.jvmargs="-Xmx2048m"
3832
39- - name : Rename Artifact
40- shell : bash
41- run : |
42- mkdir -p dist
43- cp build/libs/GlideClient-Release.jar dist/GlideClient-${{ matrix.os }}.jar
44-
4533 - name : Upload Artifact
4634 uses : actions/upload-artifact@v4
4735 with :
48- name : GlideClient-${{ matrix.os }}
49- path : dist/ GlideClient-${{ matrix.os }} .jar
36+ name : GlideClient
37+ path : build/libs/ GlideClient-Release .jar
5038 if-no-files-found : error
5139
5240 release :
@@ -57,18 +45,16 @@ jobs:
5745 contents : write
5846
5947 steps :
60- - name : Download all artifacts
48+ - name : Download Artifact
6149 uses : actions/download-artifact@v4
6250 with :
51+ name : GlideClient
6352 path : artifacts
6453
6554 - name : Create Release
6655 uses : softprops/action-gh-release@v2
6756 with :
68- files : |
69- artifacts/GlideClient-ubuntu-latest/GlideClient-ubuntu-latest.jar
70- artifacts/GlideClient-windows-latest/GlideClient-windows-latest.jar
71- artifacts/GlideClient-macos-latest/GlideClient-macos-latest.jar
57+ files : artifacts/GlideClient-Release.jar
7258 generate_release_notes : true
7359 draft : false
74- prerelease : false
60+ prerelease : false
0 commit comments