diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 64a727e..0c16865 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -9,8 +9,11 @@ name: Upload Python Package on: - release: - types: [published] + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + branches: + - main permissions: contents: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4143871..b82d4a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+' + branches: + - main jobs: release: