File tree Expand file tree Collapse file tree 2 files changed +49
-8
lines changed
Expand file tree Collapse file tree 2 files changed +49
-8
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Release
22
33on :
44 push :
5- branches : [main]
65 tags :
76 - ' v*'
8- pull_request :
9- branches : [main]
7+
8+ permissions :
9+ contents : write
1010
1111jobs :
12- build :
13- uses : nitrado/hytale-plugin-workflows/.github/workflows/plugin-ci.yml@main
12+ release :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up JDK 25
20+ uses : actions/setup-java@v4
21+ with :
22+ java-version : ' 25'
23+ distribution : ' temurin'
24+ cache : maven
25+
26+ - name : Get version from tag
27+ id : get_version
28+ run : echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
29+
30+ - name : Build with Maven
31+ run : mvn clean package -Drevision=${{ steps.get_version.outputs.VERSION }}
32+
33+ - name : Create Release
34+ uses : softprops/action-gh-release@v2
35+ with :
36+ name : Fivemanage v${{ steps.get_version.outputs.VERSION }}
37+ draft : false
38+ prerelease : false
39+ generate_release_notes : true
40+ files : |
41+ target/Fivemanage-*.jar
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1515 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1616 </properties >
1717
18+ <repositories >
19+ <repository >
20+ <id >hytale-release</id >
21+ <url >https://maven.hytale.com/release</url >
22+ </repository >
23+ <repository >
24+ <id >hytale-pre-release</id >
25+ <url >https://maven.hytale.com/pre-release</url >
26+ </repository >
27+ </repositories >
28+
1829 <dependencies >
1930 <dependency >
2031 <groupId >com.hypixel.hytale</groupId >
21- <artifactId >HytaleServer-parent </artifactId >
22- <version >1.0-SNAPSHOT </version >
32+ <artifactId >Server </artifactId >
33+ <version >2026.01.24-6e2d4fc36 </version >
2334 <scope >provided</scope >
2435 </dependency >
2536
You can’t perform that action at this time.
0 commit comments