File tree Expand file tree Collapse file tree 1 file changed +31
-9
lines changed
Expand file tree Collapse file tree 1 file changed +31
-9
lines changed Original file line number Diff line number Diff line change 1- name : Build
2-
1+ name : Mod Build
32on : [ push ]
4-
53jobs :
64 build :
75 runs-on : ubuntu-latest
86 steps :
9- - name : Checkout sources
10- uses : actions/checkout@v4
11- - name : Setup Gradle
12- uses : gradle/actions/setup-gradle@v3
13- - name : Build with Gradle
14- run : ./gradlew build
7+ - name : Checkout Repository
8+ uses : actions/checkout@v4
9+ with :
10+ fetch-depth : 200
11+ - name : Set up JDK 17
12+ uses : actions/setup-java@v4
13+ with :
14+ java-version : 17
15+ distribution : zulu
16+ cache : gradle
17+ - name : Loom Cache
18+ uses : actions/cache@v4
19+ with :
20+ path : " **/.gradle/loom-cache"
21+ key : " ${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}"
22+ restore-keys : " ${{ runner.os }}-gradle-"
23+ - uses : gradle/actions/wrapper-validation@v4
24+ - run : chmod +x ./gradlew
25+ - name : Build with Gradle
26+ run : ./gradlew build
27+ - name : Read minecraft version from gradle.properties
28+ id : read-version
29+ run : |
30+ minecraft_version=$(grep '^minecraft_version=' gradle.properties | cut -d'=' -f2)
31+ echo "minecraft_version=$minecraft_version" >> $GITHUB_ENV
32+ - name : Upload Build Artifacts
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : IamMusicPlayerRenewed
36+ path : build/libs
You can’t perform that action at this time.
0 commit comments