Feature/additional geometry file export methods #257
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/upload-artifact@v4.3.3 | |
with: | |
name: wheel | |
path: dist/*.whl | |
- uses: actions/upload-artifact@v4.3.3 | |
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/download-artifact@v4.1.7 | |
with: | |
name: sdist | |
path: dist | |
- name: Download artifact wheel | |
uses: actions/download-artifact@v4.1.7 | |
with: | |
name: wheel | |
path: dist | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.9.0 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |