Skip to content

Commit a4953e3

Browse files
committed
Improve GHA CI
1 parent 0abc2b7 commit a4953e3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44
push:
55
branches:
66
- master
7+
release:
8+
types: [published]
79
jobs:
810
build-wheel:
911
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
id-token: write
15+
attestations: write
1016
steps:
1117
- uses: actions/checkout@v6
1218
- uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
@@ -20,3 +26,13 @@ jobs:
2026
with:
2127
name: dist
2228
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+
if: github.event_name == 'release'
36+
env:
37+
GH_TOKEN: ${{ github.token }}
38+
run: gh release upload "${{ github.event.release.tag_name }}" dist/*.whl

0 commit comments

Comments
 (0)