Skip to content

Upload nightly wheels to Anaconda Cloud #280

Upload nightly wheels to Anaconda Cloud

Upload nightly wheels to Anaconda Cloud #280

name: Upload nightly wheels to Anaconda Cloud
on:
# Run daily at 1:23 UTC
schedule:
- cron: 23 1 * * *
# Run on demand with workflow dispatch
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheel:
name: Build and upload wheel
if: github.repository_owner == 'scikit-hep'
uses: ./.github/workflows/build-distributions.yml
upload_nightly_wheels:
name: Upload nightly wheels to Anaconda Cloud
needs: [build_wheel]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: distribution-artifact
path: dist
- name: List wheel to be deployed
run: ls -lha dist/*.whl
- name: Upload wheel to Anaconda Cloud as nightly
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}