1
+ # This file is autogenerated by maturin v1.7.4
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github --manifest-path cliquepicking_python/Cargo.toml
5
+ #
1
6
name : CI
2
7
3
8
on :
13
18
permissions :
14
19
contents : read
15
20
16
- defaults :
17
- run :
18
- working-directory : ./cliquepicking_python
19
-
20
-
21
21
jobs :
22
22
linux :
23
23
runs-on : ${{ matrix.platform.runner }}
45
45
uses : PyO3/maturin-action@v1
46
46
with :
47
47
target : ${{ matrix.platform.target }}
48
- args : --release --out dist --find-interpreter
48
+ args : --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
49
49
sccache : ' true'
50
50
manylinux : auto
51
51
- name : Upload wheels
76
76
uses : PyO3/maturin-action@v1
77
77
with :
78
78
target : ${{ matrix.platform.target }}
79
- args : --release --out dist --find-interpreter
79
+ args : --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
80
80
sccache : ' true'
81
81
manylinux : musllinux_1_2
82
82
- name : Upload wheels
@@ -104,7 +104,7 @@ jobs:
104
104
uses : PyO3/maturin-action@v1
105
105
with :
106
106
target : ${{ matrix.platform.target }}
107
- args : --release --out dist --find-interpreter
107
+ args : --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
108
108
sccache : ' true'
109
109
- name : Upload wheels
110
110
uses : actions/upload-artifact@v4
@@ -130,7 +130,7 @@ jobs:
130
130
uses : PyO3/maturin-action@v1
131
131
with :
132
132
target : ${{ matrix.platform.target }}
133
- args : --release --out dist --find-interpreter
133
+ args : --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
134
134
sccache : ' true'
135
135
- name : Upload wheels
136
136
uses : actions/upload-artifact@v4
@@ -146,7 +146,7 @@ jobs:
146
146
uses : PyO3/maturin-action@v1
147
147
with :
148
148
command : sdist
149
- args : --out dist
149
+ args : --out dist --manifest-path cliquepicking_python/Cargo.toml
150
150
- name : Upload sdist
151
151
uses : actions/upload-artifact@v4
152
152
with :
@@ -156,11 +156,23 @@ jobs:
156
156
release :
157
157
name : Release
158
158
runs-on : ubuntu-latest
159
- if : " startsWith(github.ref, 'refs/tags/')"
159
+ if : ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
160
160
needs : [linux, musllinux, windows, macos, sdist]
161
+ permissions :
162
+ # Use to sign the release artifacts
163
+ id-token : write
164
+ # Used to upload release artifacts
165
+ contents : write
166
+ # Used to generate artifact attestation
167
+ attestations : write
161
168
steps :
162
169
- uses : actions/download-artifact@v4
170
+ - name : Generate artifact attestation
171
+ uses : actions/attest-build-provenance@v1
172
+ with :
173
+ subject-path : ' wheels-*/*'
163
174
- name : Publish to PyPI
175
+ if : " startsWith(github.ref, 'refs/tags/')"
164
176
uses : PyO3/maturin-action@v1
165
177
env :
166
178
MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
0 commit comments