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