diff --git a/.github/workflows/build-publish-package.yml b/.github/workflows/build-publish-package.yml index 13f1c60..aaacd57 100644 --- a/.github/workflows/build-publish-package.yml +++ b/.github/workflows/build-publish-package.yml @@ -2,7 +2,8 @@ name: Build and Publish Python Package on: push: - + tags: + - '*' jobs: build-publish: @@ -22,6 +23,12 @@ jobs: with: name: dist path: dist/* + - name: Check Version Format in Tag + if: startsWith(github.ref, 'refs/tags/v') + uses: nowsprinting/check-version-format-action@v4.0.2 + id: check-version + with: + prefix: 'v' - name: Publish to PyPI if: startsWith(github.ref, 'refs/tags/') env: