diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 38c84e50..4ede3b5e 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,12 +1,8 @@ name: Publish on: - push: - branches: - - main - tags: - - '*' - workflow_dispatch: + release: + types: [published] jobs: pypi-publish: @@ -21,4 +17,4 @@ jobs: - uses: pdm-project/setup-pdm@v3 - name: Publish package distributions to PyPI - run: pdm publish \ No newline at end of file + run: pdm publish