This repository was archived by the owner on Oct 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +124
-0
lines changed
Expand file tree Collapse file tree 3 files changed +124
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build mod jar
2+
3+ on :
4+ [workflow_dispatch, push]
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ build :
11+
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4.2.2
16+ - name : Set up JDK 21
17+ uses : actions/setup-java@v4.7.0
18+ with :
19+ java-version : ' 21'
20+ distribution : ' temurin'
21+ - uses : gradle/actions/setup-gradle@v4.3.1
22+ with :
23+ gradle-version : 9.0.0
24+ name : Set up Gradle
25+ - name : Add permission
26+ run : chmod +x ./gradlew
27+ - name : Execute Gradle build
28+ run : ./gradlew build
29+
30+ - name : Upload a Build Artifact
31+ uses : actions/upload-artifact@v4.6.2
32+ with :
33+ path : build/libs
Original file line number Diff line number Diff line change 1+ name : Releases to CurseForge and/or Modrinth
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : write
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4.2.2
14+ with :
15+ fetch-depth : 0
16+
17+ - name : Set up JDK 21
18+ uses : actions/setup-java@v4.7.0
19+ with :
20+ java-version : ' 21'
21+ distribution : ' temurin'
22+
23+ - uses : gradle/actions/setup-gradle@v4.3.1
24+ with :
25+ gradle-version : 9.0.0
26+ name : Set up Gradle
27+
28+ - name : Add permission
29+ run : chmod +x ./gradlew
30+
31+ - name : Execute Gradle build
32+ run : ./gradlew build
33+
34+ - name : Get Changes between Tags
35+ id : changes
36+ uses : simbo/changes-between-tags-action@v1
37+
38+ - uses : Kir-Antipov/mc-publish@v3.3.0
39+ with :
40+ # Only include this section if you wish to publish
41+ # your assets on Modrinth.
42+ modrinth-id : placeholder
43+ modrinth-token : ${{ secrets.MODRINTH_TOKEN }}
44+
45+ # Only include this section if you wish to publish
46+ # your assets on CurseForge.
47+ curseforge-id : placeholder
48+ curseforge-token : ${{ secrets.CURSEFORGE_TOKEN }}
49+
50+ files : |
51+ build/libs/!(*-@(dev|sources|javadoc)).jar
52+ build/libs/*-@(dev|sources|javadoc).jar
53+ loaders : forge
54+ game-versions : 1.12.2
55+ java : |
56+ 21
57+ 22
58+ version : ${{ steps.changes.outputs.tag }}
59+ changelog : ${{ steps.changes.outputs.changes }}
Original file line number Diff line number Diff line change 1+ name : Releases
2+
3+ on :
4+ push :
5+ tags :
6+ - " *"
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ steps :
14+ - uses : actions/checkout@v4.2.2
15+ - name : Set up JDK 21
16+ uses : actions/setup-java@v4.7.0
17+ with :
18+ java-version : ' 21'
19+ distribution : ' temurin'
20+ - uses : gradle/actions/setup-gradle@v4.3.1
21+ with :
22+ gradle-version : 9.0.0
23+ name : Set up Gradle
24+ - name : Add permission
25+ run : chmod +x ./gradlew
26+ - name : Execute Gradle build
27+ run : ./gradlew build
28+
29+ - uses : ncipollo/release-action@v1.16.0
30+ with :
31+ artifacts : " build/libs/*"
32+ generateReleaseNotes : true
You can’t perform that action at this time.
0 commit comments