File tree 3 files changed +41
-4
lines changed
3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 18
18
java-version : ' 17'
19
19
distribution : ' temurin'
20
20
21
- - name : Build with Gradle
22
- uses : gradle/actions/setup-gradle@v3
21
+ - name : Validate Gradle Wrapper Integrity
22
+ uses : gradle/actions/wrapper-validation@v3
23
+
24
+ - name : Build
25
+ run : ./gradlew build
26
+
27
+ - uses : actions/upload-artifact@v4
23
28
with :
24
- arguments : build
29
+ name : Artifacts
30
+ path : build/libs/
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on : [workflow_dispatch]
3
+
4
+ permissions :
5
+ contents : write
6
+
7
+ jobs :
8
+ release :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout Repository
12
+ uses : actions/checkout@v3
13
+
14
+ - name : Setup JDK 17
15
+ uses : actions/setup-java@v2
16
+ with :
17
+ java-version : ' 17'
18
+ distribution : temurin
19
+ cache : gradle
20
+
21
+ - name : Validate Gradle Wrapper Integrity
22
+ uses : gradle/wrapper-validation-action@v1
23
+
24
+ - name : Make Gradle wrapper executable
25
+ run : chmod +x ./gradlew
26
+
27
+ - name : Build & Release
28
+ env :
29
+ MODRINTH_TOKEN : ${{ secrets.MODRINTH_TOKEN }}
30
+ CURSEFORGE_TOKEN : ${{ secrets.CURSEFORGE_TOKEN }}
31
+ run : ./gradlew build publish publishMods
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ configurations {
79
79
80
80
repositories {
81
81
mavenLocal()
82
- maven { url " https://maven.plus. dragons/releases" } // Create: Dragons Plus
82
+ maven { url " https://maven.dragons.plus /releases" } // Create: Dragons Plus
83
83
maven { url " https://maven.createmod.net" } // Ponder, Flywheel
84
84
maven { url " https://mvn.devos.one/snapshots" } // Registrate
85
85
maven { url " https://maven.blamejared.com" } // JEI
You can’t perform that action at this time.
0 commit comments