From 06f59a61f0a1facda977eef8320f7e52a1bf700a Mon Sep 17 00:00:00 2001 From: kchason Date: Tue, 7 Jun 2022 17:22:18 -0400 Subject: [PATCH 1/2] Switch release logic --- .github/workflows/cicd.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 97df165..3564262 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -13,9 +13,16 @@ name: Continuous Integration on: push: - branches: [ main, develop ] + branches: + - main + - develop pull_request: - branches: [ main, develop ] + branches: + - main + - develop + release: + types: + - published jobs: build: From 9d587612e2f06eb6bbaafc449f4d73494f595823 Mon Sep 17 00:00:00 2001 From: kchason Date: Tue, 7 Jun 2022 17:24:14 -0400 Subject: [PATCH 2/2] Switch release logic --- .github/workflows/cicd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 3564262..b1e7bd8 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -72,5 +72,5 @@ jobs: # If this commit is the result of a Git tag, push the wheel and tar packages # to the PyPi registry - name: Publish to PyPI - if: startsWith(github.ref, 'refs/tags') + if: github.event_name == 'release' && github.event.action == 'created' run: twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --skip-existing --verbose dist/*