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
No known key found for this signature in database

View File

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