Skip to content

Commit a96c9fe

Browse files
authored
Try to add workflow to publish nightlies (#1276)
1 parent de2c498 commit a96c9fe

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: nightly build and upload
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
defaults:
8+
run:
9+
shell: bash -eux {0}
10+
11+
jobs:
12+
build:
13+
runs-on: "ubuntu-latest"
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: ["3.12"]
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Base Setup
23+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
24+
25+
- name: Build
26+
run: |
27+
python -m build
28+
- name: Upload wheel
29+
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
30+
with:
31+
artifacts_path: dist
32+
anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}}

0 commit comments

Comments
 (0)