Skip to content

Commit 450d276

Browse files
committed
feat: 1.21.7
1 parent b2530e7 commit 450d276

File tree

5 files changed

+24
-12
lines changed

5 files changed

+24
-12
lines changed

.github/workflows/release-dev.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
`maven-publish`
1010
}
1111

12-
val baseVersion = "0.0.9"
12+
val baseVersion = "0.0.10"
1313
val commitHash = System.getenv("COMMIT_HASH")
1414
val timestamp = System.currentTimeMillis() // Temporary to be able to build and publish directly out of fix branch with same commit hash
1515
val snapshotVersion = "${baseVersion}-dev.${timestamp}-${commitHash}"

platform/bungeecord/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ modrinth {
5252
"1.21.4",
5353
"1.21.5",
5454
"1.21.6",
55+
"1.21.7",
5556
)
5657
loaders.add("bungeecord")
5758
changelog.set("https://docs.simplecloud.app/changelog")

platform/spigot/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ modrinth {
5555
"1.21.4",
5656
"1.21.5",
5757
"1.21.6",
58+
"1.21.7",
5859
)
5960
loaders.add("spigot")
6061
loaders.add("paper")

platform/velocity/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ modrinth {
5555
"1.21.4",
5656
"1.21.5",
5757
"1.21.6",
58+
"1.21.7",
5859
)
5960
loaders.add("velocity")
6061
changelog.set("https://docs.simplecloud.app/changelog")

0 commit comments

Comments
 (0)