diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index ea2701a7..4e4ae53b 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -7,8 +7,6 @@ jobs: strategy: matrix: python-version: - - '3.8' - - '3.9' - '3.10' - '3.11' - '3.12' @@ -24,7 +22,12 @@ jobs: python -mpip install build python -m build - name: Publish distribution to PyPI - if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.python-version, '3.9') - uses: pypa/gh-action-pypi-publish@v1.13.0 + if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.python-version, '3.10') + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_PASSWORD }} + - name: Create a GitHub release + if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.python-version, '3.10') + run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}