nightly-wheel-build.yml
34 lines
| 954 B
| text/x-yaml
|
YamlLexer
Matthias Bussonnier
|
r28298 | name: Nightly Wheel builder | ||
Matthias Bussonnier
|
r28294 | on: | ||
workflow_dispatch: | ||||
Matthias Bussonnier
|
r28306 | schedule: | ||
# this cron is ran every Sunday at midnight UTC | ||||
- cron: '0 0 * * 0' | ||||
Matthias Bussonnier
|
r28294 | |||
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
|
r28305 | artifacts_path: dist | ||
Matthias Bussonnier
|
r28304 | anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}} | ||