Skip to content

Removes Windows platform (builds failing at the moment) #18

Removes Windows platform (builds failing at the moment)

Removes Windows platform (builds failing at the moment) #18

Workflow file for this run

name: Upload Python Package
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
release:
types:
- published
jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
build_wheel:
name: Build binary distribution
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
#os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Build wheels
uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl
deploy:
name: Upload to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
needs: [build_sdist, build_wheel]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}