Skip to content

chore: repair publishing process #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,22 @@ jobs:
runs-on: ubuntu-latest
environment: Publish
needs: [linux, windows, macos_x86, macos_aarch64, sdist]
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
path: dist
merge-multiple: true
- name: List contents of dist directory
run: ls -la dist/
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
command: upload
args: --non-interactive --skip-existing *
packages_dir: dist
username: __token__
password: ${{ secrets.PYPI_TOKEN }}

Loading