From 700516ae79f163146a5ca39f686e84878896ee16 Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Thu, 30 Mar 2023 19:34:43 -0500 Subject: [PATCH] Change CD GH action to be trigged on release instead of push --- .github/workflows/release.yml | 5 ++--- setup.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aef3285..45342e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI on: - push: - branches: [master, main] + release: + types: [released] jobs: build-n-publish: @@ -28,7 +28,6 @@ jobs: --wheel --outdir dist/ - name: Publish distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/setup.py b/setup.py index 49c18ed..2bfce79 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() -VERSION = '0.23.1' +VERSION = '0.23.2' setup( name='bigcommerce',