python release

This commit is contained in:
Chris Tsang
2023-09-16 15:05:24 +01:00
parent 914e4ab875
commit 93e946f3c2

View File

@@ -102,6 +102,11 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: python
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
@@ -110,8 +115,6 @@ jobs:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *