@@ -82,31 +82,27 @@ jobs:
8282 with :
8383 name : wheels-sdist
8484 path : dist
85-
86- # # We aren't releasing this to pypi, just going to use the whl (probably...)
87- # release:
88- # name: Release
89- # runs-on: ubuntu-latest
90- # if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
91- # needs: [linux, musllinux, sdist]
92- # permissions:
93- # # Use to sign the release artifacts
94- # id-token: write
95- # # Used to upload release artifacts
96- # contents: write
97- # # Used to generate artifact attestation
98- # attestations: write
99- # steps:
100- # - uses: actions/download-artifact@v7
101- # - name: Generate artifact attestation
102- # uses: actions/attest@v4
103- # with:
104- # subject-path: 'wheels-*/*'
105- # - name: Install uv
106- # if: ${{ startsWith(github.ref, 'refs/tags/') }}
107- # uses: astral-sh/setup-uv@v7
108- # - name: Publish to PyPI
109- # if: ${{ startsWith(github.ref, 'refs/tags/') }}
110- # run: uv publish 'wheels-*/*'
111- # env:
112- # UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
85+ release :
86+ name : Release
87+ runs-on : ubuntu-latest
88+ if : ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
89+ needs : [linux, musllinux, sdist]
90+ permissions :
91+ contents : write
92+ attestations : write
93+ id-token : write
94+ steps :
95+ - uses : actions/download-artifact@v4
96+ with :
97+ pattern : wheels-*
98+ merge-multiple : true
99+ path : dist
100+ - name : Generate artifact attestation
101+ uses : actions/attest-build-provenance@v2
102+ with :
103+ subject-path : dist/*
104+ - name : Create GitHub Release
105+ uses : softprops/action-gh-release@v3
106+ with :
107+ files : dist/*
108+ generate_release_notes : true
0 commit comments