Skip to content

ci: add dependabot updates for github actions #33

ci: add dependabot updates for github actions

ci: add dependabot updates for github actions #33

Workflow file for this run

name: Build wheels
# inspired by: https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml
on:
push:
pull_request:
release:
types: [created]
jobs:
build_wheels:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.11.2
- name: setup xcode version
if: startsWith(matrix.os, 'macos')
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '11'
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_SKIP: "*-musllinux_i686 cp36-* cp37-* pp37-*"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
deploy:
needs: [build_wheels]
runs-on: ubuntu-latest
name: Deploy
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/checkout@v3
- name: download artifacts
uses: actions/download-artifact@v3
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist
- name: build sdist
run: python setup.py sdist
- name: deploy
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}