Skip to content

Commit 5bc406e

Browse files
committed
Switch to pypa's publish action
Turns out maturin's publish is deprecated and will be removed eventually, and as pypa handles attestations internally they can use whatever they / pypi thinks best and I don't need to look at it.
1 parent 46232de commit 5bc406e

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/release-wheels.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -236,25 +236,21 @@ jobs:
236236
permissions:
237237
# Use to sign the release artifacts
238238
id-token: write
239-
# necessary to create the artifact storage record.
240-
artifact-metadata: write
241-
# Used to generate artifact attestation
242-
attestations: write
243239
environment: release
244240
steps:
245241
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # 8.0.1
246242
with:
247-
path: dist
243+
path: dist/
248244
merge-multiple: true # dump every wheel file in the same directory
249-
- name: Generate artifact attestation
250-
if: github.event_name == 'workflow_dispatch'
251-
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # 4.1.0
252-
with:
253-
subject-path: 'dist/*'
254245
- name: Publish to PyPI
255-
uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # 1.50.1
246+
if: github.event.name == 'workflow_dispatch' && inputs.release
247+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # 1.13.0
248+
with:
249+
verbose: true
250+
- name: Publish to TestPyPI
251+
if: github.event.name != 'workflow_dispatch' || !inputs.release
252+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # 1.13.0
256253
with:
257-
command: upload
258-
args: --non-interactive --skip-existing dist/*
259-
env:
260-
MATURIN_REPOSITORY: ${{ (github.event_name == 'workflow_dispatch' && inputs.release) && 'pypi' || 'testpypi' }}
254+
repository-url: https://test.pypi.org/legacy/
255+
skip-existing: true
256+
verbose: true

0 commit comments

Comments
 (0)