diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index 505209a..16876f3 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -14,6 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + with: + fetch-depth: 0 # better gh release --generate-notes - name: Install uv uses: astral-sh/setup-uv@v8.0.0 @@ -69,3 +71,14 @@ jobs: run: | git tag "v${{ steps.version.outputs.version }}" git push origin "v${{ steps.version.outputs.version }}" + + - name: Create GitHub Release + if: steps.version.outputs.publish == 'true' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + VERSION="${{ steps.version.outputs.version }}" + gh release create "v${VERSION}" \ + --title "v${VERSION}" \ + --generate-notes \ + --verify-tag