From 05b945317380ad3d50b2f9d9114a61a2c57d99f0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 2 Oct 2022 09:52:37 -1000 Subject: [PATCH] fix: additional tweaks to publishing wheels (#53) --- .github/workflows/wheels.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 91e9ea11..6f089301 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,9 +1,12 @@ name: Build on: + push: + branches: + - main release: types: - - released + - published jobs: build_wheels: @@ -41,7 +44,8 @@ jobs: needs: [build_wheels] runs-on: ubuntu-latest environment: release - + # alternatively, to publish when a GitHub Release is created, use the following rule: + if: github.event_name == 'release' && github.event.action == 'published' steps: - uses: actions/download-artifact@v3 with: