Skip to content

Commit b26d1ba

Browse files
CI: Use scientific-python/upload-nightly-action
* Use the scientific-python/upload-nightly-action GitHub Action to upload the nightly wheels to the scientific-python-nightly-wheels Anaconda Cloud package index (https://anaconda.org/scientific-python-nightly-wheels). For security best practices pin at the commit sha corresponding to the last stable release and let Dependabot update the commit sha and comment as new releases come out. - c.f. https://github.com/scientific-python/upload-nightly-action
1 parent bfaa6eb commit b26d1ba

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/nightlies.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,11 @@ jobs:
5858
mv *.whl dist/
5959
ls -l dist/
6060
61-
# N.B. anaconda-client is only maintained on the main channel
62-
- name: Install anaconda-client
63-
uses: mamba-org/setup-micromamba@v1
64-
with:
65-
environment-name: nightlies
66-
create-args: anaconda-client=1.10.0
67-
condarc: |
68-
channels:
69-
- main
70-
7161
- name: Upload wheels to Anaconda Cloud as nightlies
72-
run: |
73-
anaconda --token ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} upload \
74-
--user scientific-python-nightly-wheels \
75-
--skip-existing \
76-
dist/matplotlib-*.whl
62+
uses: scientific-python/upload-nightly-action@8f0394fd2aa0c85d7364a9958652e8994e06b23c # 0.1.0
63+
with:
64+
artifacts_path: dist
65+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
7766

7867
- name: Remove old uploads to save space
7968
run: |

0 commit comments

Comments
 (0)