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