Skip to content

Commit f22093d

Browse files
Merge pull request #508 from nyx-space/release-python-0.6.8
Publish the wheels packages
2 parents fb787c4 + 2225d92 commit f22093d

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

.github/workflows/python.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -274,26 +274,32 @@ jobs:
274274
with:
275275
name: wheels-sdist
276276
path: anise-py/dist
277-
278-
- name: Install uv # Check that we can install uv in normal pipelines
279-
run: |
280-
curl -LsSf https://astral.sh/uv/install.sh | sh
281-
282277
release:
283278
name: Release
284279
runs-on: ubuntu-latest
285-
if: github.ref_type == 'tag'
286280
needs: [linux, windows, macos-13, macos-14, macos-15, sdist]
281+
permissions:
282+
# Use to sign the release artifacts
283+
id-token: write
284+
# Used to upload release artifacts
285+
contents: write
286+
# Used to generate artifact attestation
287+
attestations: write
287288
steps:
289+
- uses: actions/download-artifact@v4
290+
- name: Generate artifact attestation
291+
uses: actions/attest-build-provenance@v2
292+
with:
293+
subject-path: 'wheels-*/*'
294+
- name: Publish to PyPI
295+
if: github.ref_type == 'tag'
296+
uses: PyO3/maturin-action@v1
297+
env:
298+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
299+
with:
300+
command: upload
301+
args: --non-interactive --skip-existing wheels-*/*
288302
- uses: actions/download-artifact@v4 # No `name` to download all artifacts.
289303
with:
290304
pattern: wheels-*
291305
merge-multiple: true
292-
293-
- name: Publish to PyPI
294-
env:
295-
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
296-
run: |
297-
# Install uv
298-
curl -LsSf https://astral.sh/uv/install.sh | sh
299-
uv publish

0 commit comments

Comments
 (0)