File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,13 @@ source ./shared.sh
1111git fetch --tags origin
1212
1313if git rev-parse ${VERSION} -- > /dev/null 2>&1 ; then
14- echo " ::warning Tag ${VERSION} already exists. Not creating a release."
15- (gh release upload ${VERSION} " ../game-${PLATFORM} .zip" || true)
14+ # echo "::warning Tag ${VERSION} already exists. Not creating a release."
15+ IS_PRERELEASE=$( gh release view ${VERSION} --json " isPrerelease" --template " {{.isPrerelease}}" )
16+ if [ " ${IS_PRERELEASE} " == " true" ]; then
17+ gh release upload --clobber ${VERSION} " ../game-${PLATFORM} .zip" || true
18+ else
19+ gh release upload ${VERSION} " ../game-${PLATFORM} .zip" || true
20+ fi
1621else
1722 printf " Release ${VERSION} \n\n[Download](https://teamcomtress.com/)\n[Patch Notes](https://teamcomtress.com/feed/#patches)" > " notes.txt"
1823 git tag ${VERSION}
2227 " ../game-${PLATFORM} .zip" \
2328 --title " ${VERSION} " \
2429 -F " notes.txt" \
30+ --prerelease \
2531 --verify-tag \
2632 --fail-on-no-commits
2733 rm notes.txt
You can’t perform that action at this time.
0 commit comments