There was an error while loading. Please reload this page.
1 parent 0abc2b7 commit a4953e3Copy full SHA for a4953e3
1 file changed
.github/workflows/build.yml
@@ -4,9 +4,15 @@ on:
4
push:
5
branches:
6
- master
7
+ release:
8
+ types: [published]
9
jobs:
10
build-wheel:
11
runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
14
+ id-token: write
15
+ attestations: write
16
steps:
17
- uses: actions/checkout@v6
18
- uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
@@ -20,3 +26,13 @@ jobs:
20
26
with:
21
27
name: dist
22
28
path: dist/
29
+ - name: Attest build provenance
30
+ if: github.event_name == 'release'
31
+ uses: actions/attest-build-provenance@v2
32
+ with:
33
+ subject-path: dist/*.whl
34
+ - name: Upload wheel to release
35
36
+ env:
37
+ GH_TOKEN: ${{ github.token }}
38
+ run: gh release upload "${{ github.event.release.tag_name }}" dist/*.whl
0 commit comments