From b08e201a0308d289d5988b7bd3d106fd526d64d1 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Thu, 1 Feb 2024 22:53:24 +0100 Subject: [PATCH] prompt for gopass only if certain environment is set --- build.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index fc742c0..7c87819 100644 --- a/build.py +++ b/build.py @@ -10,14 +10,22 @@ PROJECT_ROOT_PATH = "." version = "1.9.2-dev" -@init(environments=["na"]) -def initialize1(project): +@init +def initialize0(project): """ to avoid prompt for gopass if no artifacts need to be uploaded - usage: with option "-E ng" , e.g. "pyb -E na patch_local" + usage: with option "-E ng" , e.g. "pyb -E artifacts patch_local" """ os.environ["RELEASE_ARTIFACT_TOKEN"] = "dummy" # avoids prompt for RELEASE_ARTIFACT_TOKEN +@init(environments=["artifacts"]) +def initialize1(project): + """ + prompt for gopass if no artifacts need to be uploaded + usage: with option "-E artifacts" , e.g. "pyb -E artifacts patch_local" + """ + del os.environ["RELEASE_ARTIFACT_TOKEN"] + @init def initialize2(project):