Show More
@@ -1,31 +1,34 b'' | |||
|
1 | 1 | name: Nightly Wheel builder |
|
2 | 2 | on: |
|
3 | 3 | workflow_dispatch: |
|
4 | schedule: | |
|
5 | # this cron is ran every Sunday at midnight UTC | |
|
6 | - cron: '0 0 * * 0' | |
|
4 | 7 | |
|
5 | 8 | jobs: |
|
6 | 9 | upload_anaconda: |
|
7 | 10 | name: Upload to Anaconda |
|
8 | 11 | runs-on: ubuntu-latest |
|
9 | 12 | # The artifacts cannot be uploaded on PRs |
|
10 | 13 | if: github.event_name != 'pull_request' |
|
11 | 14 | |
|
12 | 15 | steps: |
|
13 | 16 | - uses: actions/checkout@v3 |
|
14 | 17 | - name: Set up Python |
|
15 | 18 | uses: actions/setup-python@v4 |
|
16 | 19 | with: |
|
17 | 20 | python-version: "3.10" |
|
18 | 21 | cache: pip |
|
19 | 22 | cache-dependency-path: | |
|
20 | 23 | setup.cfg |
|
21 | 24 | - name: Try building with Python build |
|
22 | 25 | if: runner.os != 'Windows' # setup.py does not support sdist on Windows |
|
23 | 26 | run: | |
|
24 | 27 | python -m pip install build |
|
25 | 28 | python -m build |
|
26 | 29 | |
|
27 | 30 | - name: Upload wheel |
|
28 | 31 | uses: scientific-python/upload-nightly-action@main |
|
29 | 32 | with: |
|
30 | 33 | artifacts_path: dist |
|
31 | 34 | anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}} |
General Comments 0
You need to be logged in to leave comments.
Login now