Skip to content

Commit 2c0f69c

Browse files
committed
update workflow
1 parent db79bd4 commit 2c0f69c

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

.github/workflows/CI.yml

+23-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
#
16
name: CI
27

38
on:
@@ -13,11 +18,6 @@ on:
1318
permissions:
1419
contents: read
1520

16-
defaults:
17-
run:
18-
working-directory: ./cliquepicking_python
19-
20-
2121
jobs:
2222
linux:
2323
runs-on: ${{ matrix.platform.runner }}
@@ -45,7 +45,7 @@ jobs:
4545
uses: PyO3/maturin-action@v1
4646
with:
4747
target: ${{ matrix.platform.target }}
48-
args: --release --out dist --find-interpreter
48+
args: --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
4949
sccache: 'true'
5050
manylinux: auto
5151
- name: Upload wheels
@@ -76,7 +76,7 @@ jobs:
7676
uses: PyO3/maturin-action@v1
7777
with:
7878
target: ${{ matrix.platform.target }}
79-
args: --release --out dist --find-interpreter
79+
args: --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
8080
sccache: 'true'
8181
manylinux: musllinux_1_2
8282
- name: Upload wheels
@@ -104,7 +104,7 @@ jobs:
104104
uses: PyO3/maturin-action@v1
105105
with:
106106
target: ${{ matrix.platform.target }}
107-
args: --release --out dist --find-interpreter
107+
args: --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
108108
sccache: 'true'
109109
- name: Upload wheels
110110
uses: actions/upload-artifact@v4
@@ -130,7 +130,7 @@ jobs:
130130
uses: PyO3/maturin-action@v1
131131
with:
132132
target: ${{ matrix.platform.target }}
133-
args: --release --out dist --find-interpreter
133+
args: --release --out dist --find-interpreter --manifest-path cliquepicking_python/Cargo.toml
134134
sccache: 'true'
135135
- name: Upload wheels
136136
uses: actions/upload-artifact@v4
@@ -146,7 +146,7 @@ jobs:
146146
uses: PyO3/maturin-action@v1
147147
with:
148148
command: sdist
149-
args: --out dist
149+
args: --out dist --manifest-path cliquepicking_python/Cargo.toml
150150
- name: Upload sdist
151151
uses: actions/upload-artifact@v4
152152
with:
@@ -156,11 +156,23 @@ jobs:
156156
release:
157157
name: Release
158158
runs-on: ubuntu-latest
159-
if: "startsWith(github.ref, 'refs/tags/')"
159+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
160160
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
161168
steps:
162169
- uses: actions/download-artifact@v4
170+
- name: Generate artifact attestation
171+
uses: actions/attest-build-provenance@v1
172+
with:
173+
subject-path: 'wheels-*/*'
163174
- name: Publish to PyPI
175+
if: "startsWith(github.ref, 'refs/tags/')"
164176
uses: PyO3/maturin-action@v1
165177
env:
166178
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

cliquepicking_python/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)