diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 6c2af51..b3669f1 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -1,6 +1,8 @@ name: Build, test and publish to (test)PyPI on: push: + tags: + - 'v*' # matches semantic versioning (e.g., v1.2.3) branches: - master - main diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml index 09632f6..2c42005 100644 --- a/.github/workflows/testpypi.yml +++ b/.github/workflows/testpypi.yml @@ -1,6 +1,8 @@ name: Build, test and publish to testPyPI on: push: + tags: + - 'v*' # matches semantic versioning (e.g., v1.2.3) branches: - dev - hotfix