Upload and build nightly wheels #16
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: Upload and build nightly wheels | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
cron: | |
# Do not attempt to upload nightly through forks | |
if: github.repository_owner == 'networkx' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: | | |
python -m pip install -r requirements/release.txt | |
python -m build --sdist --wheel | |
- uses: scientific-python/upload-nightly-action@main | |
with: | |
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_NIGHTLY }} | |
artifacts_path: dist/ |