Skip to content

Commit

Permalink
Publish to PyPI using trusted publishing
Browse files Browse the repository at this point in the history
Signed-off-by: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
  • Loading branch information
exg committed Apr 20, 2024
1 parent 1d9c962 commit 8c90e64
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,20 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
name: Release
runs-on: ubuntu-latest
env:
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}}
TWINE_USERNAME: ${{secrets.TWINE_USERNAME}}
needs: [
build-linux-x86_64,
build-linux-cross,
build-windows,
build-macos-universal,
build-sdist,
]
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
path: wheels
- uses: actions/setup-python@v5
- uses: pypa/gh-action-pypi-publish@release/v1
with:
python-version: '3.11'
- run: python -m pip install -U pip wheel twine
- run: twine upload --non-interactive --skip-existing wheels/*
packages-dir: wheels/

0 comments on commit 8c90e64

Please sign in to comment.