aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2024-03-07 11:54:40 -0500
committerJoshua M. Boniface <joshua@boniface.me>2024-03-07 11:54:40 -0500
commit1ac8187e51d5f6bf254d3c3f6cb904b00a4fffe0 (patch)
tree438699be1de1a04c713e0e479530ba964bf47b58
parentFix bad manifest tagging (diff)
downloadjellyfin-packaging-1ac8187e51d5f6bf254d3c3f6cb904b00a4fffe0.tar.gz
jellyfin-packaging-1ac8187e51d5f6bf254d3c3f6cb904b00a4fffe0.tar.bz2
jellyfin-packaging-1ac8187e51d5f6bf254d3c3f6cb904b00a4fffe0.zip
Fail if nuget_key is not found
-rwxr-xr-xbuild.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.py b/build.py
index 5ddccb1..b0fb0e7 100755
--- a/build.py
+++ b/build.py
@@ -491,6 +491,10 @@ def build_nuget(
nuget_repo = configurations["nuget"]["feed_urls"]["stable"]
nuget_key = getenv("NUGET_STABLE_KEY")
+ if nuget_key is None:
+ log(f"Error: Failed to get NUGET_*_KEY environment variable")
+ exit(1)
+
push_command = f"dotnet nuget push out/nuget/*.nupkg -s {nuget_repo} -k {nuget_key}"
log(f">>>> {push_command}")
os.system(push_command)
bgstack15