From 8d7b926a0f9b4610264fa05358a707f081f7116a Mon Sep 17 00:00:00 2001 From: O'Connor Date: Mon, 25 Jan 2021 16:17:18 -0500 Subject: [PATCH] updated yaml file to only publish to pypi upon official release, not creation --- .github/workflows/python-publish.yml | 2 +- scripts/get_latest_release.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 0ab939f..a184abe 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -5,7 +5,7 @@ name: Upload Python Package on: release: - types: [created] + types: [released] jobs: deploy: diff --git a/scripts/get_latest_release.py b/scripts/get_latest_release.py index 77a0aab..b660f29 100644 --- a/scripts/get_latest_release.py +++ b/scripts/get_latest_release.py @@ -21,5 +21,5 @@ def get_release_data(user, repo, field=None, regex_pattern=None, group_number=0) return output -version = get_release_data(user="jsoconno", repo="architectures", field="tag_name", regex_pattern="[0-9]*\.[0-9]*\.[0-9]*") -print(version) \ No newline at end of file +data = get_release_data(user="jsoconno", repo="architectures")#, field="tag_name", regex_pattern="[0-9]*\.[0-9]*\.[0-9]*") +print(data) \ No newline at end of file