Skip to content

Commit

Permalink
Update build_wheels.yml (#1758)
Browse files Browse the repository at this point in the history
Co-authored-by: Miro <[email protected]>
Co-authored-by: Nathan Wasson <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent 6eff099 commit a0874c1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
strategy:
fail-fast: false
matrix:
Expand All @@ -29,10 +33,11 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel loadgen/ --output-dir wheels

- uses: actions/upload-artifact@v3
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
path: ./wheels/*.whl

- name: Publish package to PyPI
run: python -m twine upload wheels/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}

verify-metadata: true
skip-existing: true
packages-dir: wheels
repository-url: https://upload.pypi.org/legacy/
verbose: true

0 comments on commit a0874c1

Please sign in to comment.