nightly-wheel-build.yml
31 lines
| 870 B
| text/x-yaml
|
YamlLexer
Matthias Bussonnier
|
r28298 | name: Nightly Wheel builder | ||
Matthias Bussonnier
|
r28294 | on: | ||
workflow_dispatch: | ||||
Matthias Bussonnier
|
r28298 | jobs: | ||
upload_anaconda: | ||||
name: Upload to Anaconda | ||||
runs-on: ubuntu-latest | ||||
# The artifacts cannot be uploaded on PRs | ||||
if: github.event_name != 'pull_request' | ||||
Matthias Bussonnier
|
r28294 | |||
Matthias Bussonnier
|
r28298 | steps: | ||
- uses: actions/checkout@v3 | ||||
- name: Set up Python | ||||
uses: actions/setup-python@v4 | ||||
with: | ||||
python-version: "3.10" | ||||
cache: pip | ||||
cache-dependency-path: | | ||||
setup.cfg | ||||
- name: Try building with Python build | ||||
if: runner.os != 'Windows' # setup.py does not support sdist on Windows | ||||
run: | | ||||
Matthias Bussonnier
|
r28302 | python -m pip install build | ||
Matthias Bussonnier
|
r28298 | python -m build | ||
Matthias Bussonnier
|
r28294 | |||
Martin Fleischmann
|
r28299 | - name: Upload wheel | ||
Matthias Bussonnier
|
r28301 | uses: scientific-python/upload-nightly-action@main | ||
Martin Fleischmann
|
r28299 | with: | ||
Matthias Bussonnier
|
r28298 | artifact-names: dist/*.whl | ||
anaconda-nightly-upload-token: ${secrets.UPLOAD_TOKEN} | ||||