File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on : [workflow_dispatch] # Manual trigger
4
+
5
+ permissions :
6
+ contents : write # Needed to upload to Releases
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-24.04
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - name : Set up Microsoft JDK 17
18
+ uses : actions/setup-java@v4
19
+ with :
20
+ distribution : ' microsoft'
21
+ java-version : ' 17'
22
+
23
+ - name : Validate Gradle wrapper
24
+ uses : gradle/actions/wrapper-validation@v4
25
+
26
+ - name : Make Gradle wrapper executable
27
+ run : chmod +x ./gradlew
28
+
29
+ - name : Build mod
30
+ run : ./gradlew build --stacktrace --no-configuration-cache
31
+
32
+ - name : Upload to GitHub Releases
33
+ uses : softprops/action-gh-release@v2
34
+ with :
35
+ tag_name : ${{ github.ref_name }}
36
+ name : Release ${{ github.ref_name }}
37
+ files : build/libs/*.jar
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.4-bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
4
+ networkTimeout =10000
5
+ validateDistributionUrl =true
4
6
zipStoreBase =GRADLE_USER_HOME
5
7
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments