Skip to content

Update CI script

Update CI script #74

Workflow file for this run

name: release-main
on:
# pull_request:
# push:
# tags:
# - "**"
# workflow_dispatch:
push:
branches: [ci-fix-mar]
jobs:
build_wheels:
name: "Build on ${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
continue-on-error: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build wheels on ${{ matrix.os }}
uses: pypa/cibuildwheel@v3.3.1
- uses: actions/upload-artifact@v4
if: always()
with:
name: distribution-${{ matrix.os }}
path: ./wheelhouse/*.whl
# release:
# needs: [build_wheels]
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/download-artifact@v4
# with:
# name: distribution-*
# path: dist/
# - name: Setup Python
# uses: actions/setup-python@v6
# - name: Install tox
# run: |
# python -m pip install tox
# - name: Release
# run: tox -e release
# env:
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}