|
4 | 4 | push: |
5 | 5 | tags: |
6 | 6 | - "py-v*" |
| 7 | + - "v*" |
7 | 8 |
|
8 | 9 | permissions: |
9 | 10 | contents: read |
@@ -143,29 +144,29 @@ jobs: |
143 | 144 | name: wheels-sdist |
144 | 145 | path: dist |
145 | 146 |
|
146 | | - # release: |
147 | | - # name: Release |
148 | | - # runs-on: ubuntu-latest |
149 | | - # if: ${{ startsWith(github.ref, 'refs/tags/') }} |
150 | | - # needs: [linux, musllinux, windows, macos, sdist] |
151 | | - # permissions: |
152 | | - # # Use to sign the release artifacts |
153 | | - # id-token: write |
154 | | - # # Used to upload release artifacts |
155 | | - # contents: write |
156 | | - # # Used to generate artifact attestation |
157 | | - # attestations: write |
158 | | - # steps: |
159 | | - # - uses: actions/download-artifact@v4 |
160 | | - # - name: Generate artifact attestation |
161 | | - # uses: actions/attest-build-provenance@v1 |
162 | | - # with: |
163 | | - # subject-path: "wheels-*/*" |
164 | | - # - name: Publish to PyPI |
165 | | - # if: ${{ startsWith(github.ref, 'refs/tags/') }} |
166 | | - # uses: PyO3/maturin-action@v1 |
167 | | - # env: |
168 | | - # MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |
169 | | - # with: |
170 | | - # command: upload |
171 | | - # args: --non-interactive --skip-existing wheels-*/* |
| 147 | + release: |
| 148 | + name: Release |
| 149 | + runs-on: ubuntu-latest |
| 150 | + if: ${{ startsWith(github.ref, 'refs/tags/') }} |
| 151 | + needs: [linux, musllinux, windows, macos, sdist] |
| 152 | + permissions: |
| 153 | + # Use to sign the release artifacts |
| 154 | + id-token: write |
| 155 | + # Used to upload release artifacts |
| 156 | + contents: write |
| 157 | + # Used to generate artifact attestation |
| 158 | + attestations: write |
| 159 | + steps: |
| 160 | + - uses: actions/download-artifact@v4 |
| 161 | + - name: Generate artifact attestation |
| 162 | + uses: actions/attest-build-provenance@v1 |
| 163 | + with: |
| 164 | + subject-path: "wheels-*/*" |
| 165 | + - name: Publish to PyPI |
| 166 | + if: ${{ startsWith(github.ref, 'refs/tags/') }} |
| 167 | + uses: PyO3/maturin-action@v1 |
| 168 | + env: |
| 169 | + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |
| 170 | + with: |
| 171 | + command: upload |
| 172 | + args: --non-interactive --skip-existing wheels-*/* |
0 commit comments