Skip to content

CD

CD #3

Workflow file for this run

name: CD
on:
workflow_dispatch:
release:
types: [released]
jobs:
build-wheels:
# if: ${{ false }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BEFORE_ALL: |
git clone https://github.com/pybind/pybind11.git
cd pybind11
git checkout v2.11.1
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
make-source-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build SDist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
upload_all:
if: ${{ false }}
needs: [build-wheels, make-source-dist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1