replace old release if it is still a draft
This commit is contained in:
parent
e9ca3f6a42
commit
26184d5544
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ RAW_VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)"
|
||||||
VERSION="v$RAW_VERSION"
|
VERSION="v$RAW_VERSION"
|
||||||
|
|
||||||
if [[ $DRY_RUN == false ]]; then
|
if [[ $DRY_RUN == false ]]; then
|
||||||
|
if [[ $(gh release list | grep -i "Draft" | grep -i "$VERSION" && echo "true" || echo "false") == "true" ]]; then
|
||||||
|
gh release delete --yes "$VERSION"
|
||||||
|
fi
|
||||||
gh release create "$VERSION" --title "$VERSION" --draft "$BIN_PATH" "./steamguard-cli_$RAW_VERSION-0.deb"
|
gh release create "$VERSION" --title "$VERSION" --draft "$BIN_PATH" "./steamguard-cli_$RAW_VERSION-0.deb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue