build: Remove auth if token not provided

This commit is contained in:
Elian Doran
2024-07-21 13:24:44 +03:00
parent d09578735e
commit 715a952148

View File

@@ -65,7 +65,9 @@ if [[ $TAG == *"beta"* ]]; then
EXTRA=--prerelease
fi
echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token
if [ ! -z "$GITHUB_CLI_AUTH_TOKEN" ]; then
echo "$GITHUB_CLI_AUTH_TOKEN" | gh auth login --with-token
fi
gh release create "$TAG" \
--title "$TAG release" \