Skip to content

Build your personal knowledge base with Trilium Notes

build: Remove auth if token not provided

Elian Doran715a952148ae
diff --git a/bin/release.sh b/bin/release.sh
index cb1b360216..0d4ef905d7 100755
--- a/bin/release.sh
+++ b/bin/release.sh
@@ -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" \