@@ -116,7 +116,7 @@ jobs:
116116 # Convert newline-separated versions into simple JSON array
117117 PLATFORM_VERSIONS=$(echo "$MINECRAFT_VERSIONS" | jq -R -s 'split("\n") | map(select(length > 0))')
118118 echo "Using platform versions: $PLATFORM_VERSIONS"
119-
119+
120120 # Upload Spigot Platform
121121 SPIGOT_URL="${REGISTRY_URL}/v1/applications/${APP_ID}/releases/${{ needs.build.outputs.gradle_version }}/files"
122122 echo "Uploading Spigot to: $SPIGOT_URL"
@@ -250,6 +250,11 @@ jobs:
250250 needs : [ build, publish-registry, publish-maven, publish-modrinth ]
251251 runs-on : ubuntu-latest
252252 steps :
253+ - name : Checkout repository
254+ uses : actions/checkout@v3
255+ with :
256+ ref : main
257+
253258 - name : Download artifacts
254259 uses : actions/download-artifact@v4
255260 with :
@@ -258,15 +263,19 @@ jobs:
258263
259264 - name : Create GitHub Release
260265 id : create_release
261- uses : actions/create-release@v1
262- with :
263- tag_name : v${{ needs.build.outputs.gradle_version }}-dev.${{ needs.build.outputs.commit_hash }}
264- release_name : v${{ needs.build.outputs.gradle_version }}-dev.${{ needs.build.outputs.commit_hash }}
265- draft : false
266- prerelease : true
267- commitish : main
268- body : |
269- This release contains dev builds for all platform modules.
266+ run : |
267+ RELEASE_TAG="v${{ needs.build.outputs.gradle_version }}-dev.${{ needs.build.outputs.commit_hash }}"
268+ RELEASE_NAME="v${{ needs.build.outputs.gradle_version }}-dev.${{ needs.build.outputs.commit_hash }}"
269+ RELEASE_BODY="This release contains dev builds for all platform modules."
270+
271+ gh release create "$RELEASE_TAG" \
272+ --title "$RELEASE_NAME" \
273+ --notes "$RELEASE_BODY" \
274+ --target main \
275+ --prerelease
276+
277+ # Export the release tag for use in the next step
278+ echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
270279 env :
271280 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
272281
@@ -277,7 +286,7 @@ jobs:
277286 echo "Skipping $jar due to version number"
278287 else
279288 echo "Uploading $jar"
280- gh release upload v${{ needs.build.outputs.gradle_version }}-dev.${{ needs.build.outputs.commit_hash }} "$jar"
289+ gh release upload "$RELEASE_TAG" "$jar"
281290 fi
282291 done
283292 env :
0 commit comments