Release/0.9.0 (#239) #297
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 Project | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
tags: | |
- "v*.*.*" | |
jobs: | |
build_wheels_and_sdist: | |
name: Build wheels and sdist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install build dependencies | |
run: | | |
python --version | |
python -m pip install --progress-bar off build | |
- name: Build wheels and sdist | |
run: python -m build --sdist --wheel --outdir dist/ . | |
- uses: actions/[email protected] | |
with: | |
name: wheel | |
path: dist/*.whl | |
- uses: actions/[email protected] | |
with: | |
name: sdist | |
path: dist/*.tar.gz | |
Publish: | |
name: Publish to PyPI | |
needs: [build_wheels_and_sdist] | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- name: Download artifact sdist | |
uses: actions/[email protected] | |
with: | |
name: sdist | |
path: dist | |
- name: Download artifact wheel | |
uses: actions/[email protected] | |
with: | |
name: wheel | |
path: dist | |
- name: Publish to PyPI | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |