Skip to content

Commit d06f695

Browse files
Add GitHub Actions workflow for building mod
1 parent 4f101a6 commit d06f695

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build Mod Without Local JDK
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Repository
10+
uses: actions/checkout@v4
11+
12+
- name: Set up Java
13+
uses: actions/setup-java@v4
14+
with:
15+
distribution: 'temurin'
16+
java-version: '21' # Change to 17 or 8 depending on the Minecraft version
17+
18+
- name: Make Gradle Executable
19+
run: chmod +x gradlew
20+
21+
- name: Build with Gradle
22+
run: ./gradlew build
23+
24+
- name: Upload Mod Jar
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: compiled-mod
28+
path: build/libs/*.jar

0 commit comments

Comments
 (0)