Use maturin
as a build backend and improve github workflows
#137
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: Release PyPi | |
on: | |
workflow_dispatch: | |
# release: | |
# types: | |
# - created | |
pull_request: | |
branches: [main] | |
jobs: | |
build_wheels: | |
# TODO: switch to main | |
uses: dottxt-ai/outlines-core/.github/workflows/build_wheels.yml@maturin | |
with: | |
auto_bump: true | |
release: | |
needs: build_wheels | |
name: Release to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: wheels-* | |
merge-multiple: true | |
path: dist | |
- uses: actions/download-artifact@v4 | |
with: | |
name: sdist | |
path: dist | |
# - name: Publish to PyPI | |
# uses: pypa/[email protected] | |
# with: | |
# user: __token__ | |
# password: ${{ secrets.PYPI_SECRET }} |