Skip to content

ci: upload nightly wheels to Anaconda #1081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Anaconda Cloud nightly wheels

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-build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: hynek/build-and-inspect-python-package@v2

upload_nightly_wheels:
name: Upload nightly wheels to Anaconda Cloud
if: github.repository_owner == 'scikit-build'
needs: [build_wheel]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
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@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf # 0.6.2
with:
artifacts_path: dist
anaconda_nightly_upload_token:
${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
Loading