mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-05-14 04:09:33 +00:00
Fix error on Appveyor
This commit is contained in:
parent
0c88cc740f
commit
62d4fb61ea
11
.github/deploy.py
vendored
11
.github/deploy.py
vendored
@ -81,12 +81,9 @@ def get_tag(ci):
|
||||
elif ci == CI.TRAVIS:
|
||||
return os.getenv("TRAVIS_TAG", "")
|
||||
elif ci == CI.APPVEYOR:
|
||||
if os.getenv("APPVEYOR_REPO_TAG", "") in (None, ''):
|
||||
return ""
|
||||
|
||||
if os.getenv("APPVEYOR_REPO_TAG", "").lower() == "false":
|
||||
return ""
|
||||
return os.getenv("APPVEYOR_REPO_TAG_NAME", "")
|
||||
if "APPVEYOR_REPO_TAG_NAME" in os.environ:
|
||||
return os.getenv("APPVEYOR_REPO_TAG_NAME", "")
|
||||
return ""
|
||||
elif ci == CI.GITHUB_ACTIONS:
|
||||
ref = os.getenv("GITHUB_REF", "")
|
||||
logger.info("Github Action tag: {}".format(ref))
|
||||
@ -130,7 +127,7 @@ logger.info("CI: %s", CI_PRETTY_NAME)
|
||||
ALLOWED_BRANCHES = {"master", "deploy", "devel"}
|
||||
BRANCH_NAME = get_branch(CURRENT_CI)
|
||||
TAG_NAME = get_tag(CURRENT_CI)
|
||||
IS_TAGGED = len(TAG_NAME) > 0
|
||||
IS_TAGGED = TAG_NAME is not None and len(TAG_NAME) > 0
|
||||
logger.info("Branch: %s", BRANCH_NAME)
|
||||
logger.info("Tag: %s", TAG_NAME)
|
||||
if BRANCH_NAME not in ALLOWED_BRANCHES and not IS_TAGGED:
|
||||
|
Loading…
x
Reference in New Issue
Block a user