Skip to content

Commit 501625f

Browse files
henryiiipre-commit-ci[bot]Copilot
authored
ci: upload nightly wheels to Anaconda (#1081)
See scientific-python/upload-nightly-action#124. --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
1 parent bdf5a4a commit 501625f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/nightlies.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Anaconda Cloud nightly wheels
2+
3+
on:
4+
# Run daily at 1:23 UTC
5+
schedule:
6+
- cron: 23 1 * * *
7+
# Run on demand with workflow dispatch
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build_wheel:
16+
name: Build and upload wheel
17+
if: github.repository_owner == 'scikit-build'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- uses: hynek/build-and-inspect-python-package@v2
25+
26+
upload_nightly_wheels:
27+
name: Upload nightly wheels to Anaconda Cloud
28+
if: github.repository_owner == 'scikit-build'
29+
needs: [build_wheel]
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/download-artifact@v4
33+
with:
34+
name: Packages
35+
path: dist
36+
37+
- name: List wheel to be deployed
38+
run: ls -lha dist/*.whl
39+
40+
- name: Upload wheel to Anaconda Cloud as nightly
41+
uses: scientific-python/upload-nightly-action@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf # 0.6.2
42+
with:
43+
artifacts_path: dist
44+
anaconda_nightly_upload_token:
45+
${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}

0 commit comments

Comments
 (0)