Skip to content

Commit

Permalink
Fix deployment on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Jan 18, 2021
1 parent a348a12 commit f58605f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def get_tag(ci):
CI_PRETTY_NAME = pretty_ci_name(CURRENT_CI)
logger.info("CI: %s", CI_PRETTY_NAME)

ALLOWED_BRANCHES = {"master", "deploy", "devel", "enhancement/pe-authenticode"}
ALLOWED_BRANCHES = {"master", "deploy", "devel"}
BRANCH_NAME = get_branch(CURRENT_CI)
TAG_NAME = get_tag(CURRENT_CI)
IS_TAGGED = len(TAG_NAME) > 0
logger.info("Branch: %s", BRANCH_NAME)
logger.info("Tag: %s", TAG_NAME)
if BRANCH_NAME not in ALLOWED_BRANCHES:
if BRANCH_NAME not in ALLOWED_BRANCHES and not IS_TAGGED:
logger.info("Skip deployment for branch '%s'", BRANCH_NAME)
sys.exit(0)

Expand Down

0 comments on commit f58605f

Please sign in to comment.