Skip to content

Commit 7630db7

Browse files
authored
CI: add a nightly wheel upload (#787)
* CI: add a nightly wheel uplaod * lint
1 parent 878d2b3 commit 7630db7

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/wheel.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Wheels
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
# Run at 2:00 AM UTC daily
8+
- cron: '0 2 * * *'
9+
workflow_dispatch: # Allow manual trigger
410

511
concurrency:
612
group: ${{ github.workflow }}-${{ github.ref }}
@@ -96,3 +102,20 @@ jobs:
96102
user: __token__
97103
password: ${{ secrets.pypi_password }}
98104
# To test: repository_url: https://test.pypi.org/legacy/
105+
106+
upload_nightly:
107+
needs: [build_wheels]
108+
runs-on: ubuntu-latest
109+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
110+
steps:
111+
- uses: actions/download-artifact@v4
112+
with:
113+
pattern: wheels-*
114+
path: dist
115+
merge-multiple: true
116+
117+
- name: Upload to scientific-python nightly channel
118+
uses: scientific-python/upload-nightly-action@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf
119+
with:
120+
artifacts_path: dist
121+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_NIGHTLY_UPLOAD_TOKEN }}

0 commit comments

Comments
 (0)