Skip to content

Commit c580940

Browse files
Add release workflow
1 parent 40d5dd2 commit c580940

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 }}

gradle/wrapper/gradle-wrapper.jar

-15.3 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
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
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)