Skip to content

Commit 0112a73

Browse files
committed
chore: test build.yml on test
1 parent dd548f5 commit 0112a73

1 file changed

Lines changed: 23 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,17 +363,32 @@ jobs:
363363
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true'
364364

365365
runs-on: ubuntu-latest
366-
environment: Publish
367-
needs: [linux, windows, macos_x86, macos_aarch64, sdist]
366+
#environment: Publish
367+
environment: testpublish
368+
permissions:
369+
# IMPORTANT: this permission is mandatory for Trusted Publishing
370+
id-token: write
371+
#needs: [linux, windows, macos_x86, macos_aarch64, sdist]
372+
needs: [linux, macos_aarch64, sdist]
368373
steps:
369374
- uses: actions/download-artifact@v4
370375
with:
371376
pattern: wheels-*
372377
name: wheels
373-
- name: Publish to PyPI
374-
uses: PyO3/maturin-action@v1
375-
env:
376-
MATURIN_PYPI_TOKEN: ${{ secrets.caipypi }}
378+
path: dist
379+
#- name: Publish to PyPI
380+
# env:
381+
# MATURIN_PYPI_TOKEN: ${{ secrets.caipypi }}
382+
# with:
383+
# command: upload
384+
# args: --non-interactive --skip-existing *
385+
386+
# List the contents of the dist directory for debugging
387+
- name: List final dist directory contents
388+
run: ls -l dist || echo "dist directory does not exist or is empty"
389+
390+
- name: Publish package distributions to PyPI
391+
uses: pypa/gh-action-pypi-publish@release/v1
377392
with:
378-
command: upload
379-
args: --non-interactive --skip-existing *
393+
repository-url: https://test.pypi.org/legacy/
394+
verbose: true

0 commit comments

Comments
 (0)