Skip to content

Commit ae11efd

Browse files
authored
CI system try 3
1 parent a246da2 commit ae11efd

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

.github/workflows/gradle.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,36 @@
1-
name: Build
2-
1+
name: Mod Build
32
on: [ push ]
4-
53
jobs:
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

0 commit comments

Comments
 (0)