diff --git a/appveyor.yml b/appveyor.yml index 21e99a521..255b66dda 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,6 +39,7 @@ build_script: - node_modules\.bin\build -p never # for debugging, see what was built - dir dist + - pip install PyGithub uritemplate - python release_on_tag.py test: off diff --git a/release_on_tag.py b/release_on_tag.py index 8842b5ed5..e5d5d1c7b 100644 --- a/release_on_tag.py +++ b/release_on_tag.py @@ -57,7 +57,10 @@ def check_repo_has_tag(repo, target_tag): def get_release(current_repo, current_tag): - return current_repo.get_release(current_tag) + for release in current_repo.get_releases(): + if release.tag_name == current_tag: + return release + raise Exception('No release for {} was found'.format(current_tag)) def get_artifact():