mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 22:27:12 +03:00
a8accc3396
* Add workflow files for cibuildwheel
* Add config for cibuildwheel
* Set version for experimental prerelease
* Try updating cython
* Skip 32-bit windows builds
* Revert "Try updating cython"
This reverts commit c1b794ab5c
.
* Try to import cibuildwheel settings from previous setup
30 lines
944 B
YAML
30 lines
944 B
YAML
# The cibuildwheel action triggers on creation of a release, this
|
|
# triggers on publication.
|
|
# The expected workflow is to create a draft release and let the wheels
|
|
# upload, and then hit 'publish', which uploads to PyPi.
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
upload_pypi:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: pypi
|
|
url: https://pypi.org/p/spacy
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
if: github.event_name == 'release' && github.event.action == 'published'
|
|
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
|
|
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
steps:
|
|
- uses: robinraju/release-downloader@v1
|
|
with:
|
|
tag: ${{ github.event.release.tag_name }}
|
|
fileName: '*'
|
|
out-file-path: 'dist'
|
|
- uses: pypa/gh-action-pypi-publish@release/v1
|