File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed
Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments