@@ -44,13 +44,13 @@ jobs:
4444 # ─────────────────────────────────────────────────────────────
4545
4646 # ─────────────────────────────────────────────────────────────
47- # 2. JDK8 + Gradle cache (Runs unconditionally now when job starts)
47+ # 2. JDK21 + Gradle cache (Runs unconditionally now when job starts)
4848 # ─────────────────────────────────────────────────────────────
49- - name : Set up JDK8
49+ - name : Set up JDK21
5050 uses : actions/setup-java@v3
5151 with :
5252 distribution : temurin
53- java-version : ' 8 '
53+ java-version : ' 21 '
5454 cache : gradle
5555
5656 # ─────────────────────────────────────────────────────────────
9090 echo "Extracted version: $ver from $jar_path"
9191
9292 # ─────────────────────────────────────────────────────────────
93- # 6. Create/update a version‑tagged release
93+ # 6. Publishing
9494 # ─────────────────────────────────────────────────────────────
95- - name : Publish nightly release
95+ - name : Publish Nightly Release
9696 # Only condition now is that locate step must succeed
9797 if : steps.locate.outputs.ver != ''
9898 uses : ncipollo/release-action@v1
@@ -104,3 +104,45 @@ jobs:
104104 makeLatest : true
105105 allowUpdates : true
106106 token : ${{ secrets.GITHUB_TOKEN }}
107+
108+ - name : Publish to GitHub Actions
109+ uses : actions/upload-artifact@v4
110+ with :
111+ name : minecraft-sqlite-jdbc
112+ path : ${{ steps.locate.outputs.jar }}
113+ if-no-files-found : error
114+
115+ - name : Publish to Modrinth
116+ uses : Kir-Antipov/mc-publish@v3.3
117+ with :
118+ modrinth-id : ${{ vars.MODRINTH_ID }}
119+ modrinth-token : ${{ secrets.MODRINTH_TOKEN }}
120+ modrinth-featured : true
121+ modrinth-unfeature-mode : subset
122+
123+ files : |
124+ ${{ steps.locate.outputs.jar }}
125+
126+ name : ${{ steps.locate.outputs.ver }}
127+ version : ${{ steps.locate.outputs.ver }}
128+ version-type : release
129+ changelog : ${{ steps.changelog.outputs.notes }}
130+
131+ loaders : |
132+ bukkit
133+ spigot
134+ paper
135+ folia
136+ purpur
137+ forge
138+ neoforge
139+ quilt
140+ spigot
141+ fabric
142+
143+ game-versions : |
144+ >=1.12.2
145+
146+ retry-attempts : 2
147+ retry-delay : 10000
148+ fail-mode : fail
0 commit comments