Skip to content

Commit 59edb13

Browse files
committed
ci: hardcode game-versions per branch instead of detecting from tag
1 parent f7eb0cb commit 59edb13

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ jobs:
3838
echo "path=$JAR_PATH" >> $GITHUB_OUTPUT
3939
echo "Found JAR: $JAR_PATH"
4040
41-
- name: Determine game versions
42-
id: game
43-
run: |
44-
if [[ "${{ github.ref_name }}" == *"-1.20"* ]]; then
45-
echo "versions=>=1.20 <1.21" >> $GITHUB_OUTPUT
46-
else
47-
echo "versions=>=1.21" >> $GITHUB_OUTPUT
48-
fi
49-
5041
- name: Upload to Modrinth & CurseForge
5142
uses: Kir-Antipov/mc-publish@v3.3
5243
with:
@@ -62,7 +53,7 @@ jobs:
6253
version: ${{ steps.version.outputs.version }}
6354
version-type: ${{ github.event.release.prerelease && 'beta' || 'release' }}
6455

65-
game-versions: ${{ steps.game.outputs.versions }}
56+
game-versions: ">=1.21"
6657

6758
loaders: |
6859
paper

0 commit comments

Comments
 (0)