Skip to content

Commit 2499c9d

Browse files
authored
Add Gradle setup step to build workflow
Added Gradle setup step before the build process.
1 parent ea1a302 commit 2499c9d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
java-version: 21
1717
distribution: 'temurin'
1818

19+
- name: setup gradle
20+
uses: gradle/actions/setup-gradle@v3
21+
1922
- name: build
2023
run: |
2124
chmod +x ./gradlew
@@ -27,12 +30,11 @@ jobs:
2730
path: build/libs/*
2831
archive: false
2932

30-
3133
- name: publish
3234
if: startsWith(github.ref, 'refs/tags/')
3335
uses: apehum/mc-publish@v1.2
3436
with:
3537
modrinth-id: 7FoirOzn
3638
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
3739
github-token: ${{ secrets.GITHUB_TOKEN }}
38-
game-versions: 1.21.1
40+
game-versions: 1.21.1

0 commit comments

Comments
 (0)