Tweak push rules for release build

This commit is contained in:
Robert Taylor 2023-08-11 14:25:11 +00:00
parent f192afd5f5
commit aff1df5062
1 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@ on:
push: push:
branches: branches:
- main - main
tags:
- v**
release: release:
types: types:
- published - published
@ -112,6 +114,7 @@ jobs:
upload_pypi: upload_pypi:
# TODO: create an sdist that can build without a custom environment # TODO: create an sdist that can build without a custom environment
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs: [build_wheels] needs: [build_wheels]
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -132,7 +135,6 @@ jobs:
environment: pypi environment: pypi
permissions: permissions:
id-token: write id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with: