Skip to content

Add cibuildwheel and publish_pypi workflows #1

Add cibuildwheel and publish_pypi workflows

Add cibuildwheel and publish_pypi workflows #1

Workflow file for this run

name: Build
on:
push:
tags:
# ** matches 'zero or more of any character'
- 'release-v[0-9]+.[0-9]+.[0-9]+**'
- 'prerelease-v[0-9]+.[0-9]+.[0-9]+**'
workflow_dispatch: # allows you to trigger manually
jobs:
build_wheels:
uses: explosion/gha-cibuildwheel/.github/workflows/cibuildwheel.yml@main
permissions:
contents: write
actions: read
with:
wheel-name-pattern: "ml_datasets-*.whl"
pure-python: true
create-release: ${{ startsWith(github.ref, 'refs/tags/release-') || startsWith(github.ref, 'refs/tags/prerelease-') }}
secrets:
gh-token: ${{ secrets.GITHUB_TOKEN }}