@@ -21,14 +21,44 @@ jobs:
2121
2222 steps :
2323 - uses : actions/checkout@v2
24+
2425 - name : Set up JDK 17
2526 uses : actions/setup-java@v1
2627 with :
2728 java-version : 17
28- - name : ' Build with Maven (Bukkit)'
29- run : ' cd bukkit; mvn clean package -T4'
30- - name : ' Build with Maven (BungeeCord)'
31- run : ' cd bungeecord; mvn clean package -T4'
32- - name : ' Build with Maven (Velocity)'
33- run : ' cd velocity; mvn clean package -T4'
34-
29+
30+ - name : Build with Maven (BungeeCord)
31+ run : cd bungeecord && mvn clean package -T4
32+
33+ - name : Build with Maven (Velocity)
34+ run : cd velocity && mvn clean package -T4
35+
36+ - name : Get the current commit SHA
37+ id : vars
38+ run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
39+
40+ - name : Create GitHub Release
41+ uses : softprops/action-gh-release@v1
42+ with :
43+ tag_name : release-${{ steps.vars.outputs.sha_short }}
44+ name : Release ${{ steps.vars.outputs.sha_short }}
45+ draft : false
46+ prerelease : false
47+ env :
48+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+
50+ - name : Upload BungeeCord JAR
51+ uses : softprops/action-gh-release@v1
52+ with :
53+ tag_name : release-${{ steps.vars.outputs.sha_short }}
54+ files : bungeecord/target/*.jar
55+ env :
56+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57+
58+ - name : Upload Velocity JAR
59+ uses : softprops/action-gh-release@v1
60+ with :
61+ tag_name : release-${{ steps.vars.outputs.sha_short }}
62+ files : velocity/target/*.jar
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments