Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build loadgen wheels and release them into PYPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: Install requirements | |
run: python -m pip install cibuildwheel==2.16.2 twine==4.0.2 | |
- name: Build wheels | |
run: python -m cibuildwheel loadgen/ --output-dir wheels | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheels/*.whl | |
- name: Publish package to PyPI | |
run: python -m twine upload wheels/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} | |