Build #11
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 | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
#build_wheels: | |
# name: Build wheels on ${{ matrix.os }} | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# matrix: | |
# # macos-13 is an intel runner, macos-14 is apple silicon | |
# os: [ubuntu-latest, windows-latest, macos-13] | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Build wheels | |
# uses: pypa/[email protected] | |
# env: | |
# CIBW_SOME_OPTION: value | |
# with: | |
# package-dir: . | |
# output-dir: wheelhouse | |
# config-file: "{package}/pyproject.toml" | |
# - name: Upload release binaries | |
# uses: alexellis/[email protected] | |
# env: | |
# GITHUB_TOKEN: ${{ github.token }} | |
# with: | |
# asset_paths: '["./dist/*.whl"]' | |
build_sdist: | |
name: Build source distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build sdist | |
run: pipx run build --sdist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-sdist | |
path: dist/*.tar.gz | |
# After the build has finished, download the artifacts from the action | |
# and upload them to the release. When we publish the release, the | |
# assets will be downloaded from it and uploaded to PyPi. | |
upload_assets_to_release: | |
needs: [build_sdist] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
checks: write | |
actions: read | |
issues: read | |
packages: write | |
pull-requests: read | |
repository-projects: read | |
statuses: read | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
# unpacks all CIBW artifacts into dist/ | |
pattern: cibw-* | |
path: dist | |
merge-multiple: true | |
- uses: alexellis/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
asset_paths: '["./dist/*"]' | |