Skip to content

Only build for relevant python versions #4

Only build for relevant python versions

Only build for relevant python versions #4

Workflow file for this run

name: Build and Publish

Check failure on line 1 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yaml

Invalid workflow file

You have an error in your yaml syntax
on:
release:
types: [published]
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
environment: release
permissions:
id-token: write
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
# Used to host cibuildwheel
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
# to supply options, put them in 'env', like:
env:
CIBW_BUILD: cp39-*, cp310-*, cp311-*, cp312-*
CIBW_SKIP: *-manylinux_i686
- uses: actions/upload-artifact@v4
with:
name: lie_learn_escience-${{ matrix.os }}-${{ strategy.job-index }}
path: ./dist/*.whl
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1