Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 019dbf4

Browse files
authored
Merge pull request #26023 from matthewfeickert/ci/use-scientific-python-nightly-wheels-action
CI: Use scientific-python/upload-nightly-action
2 parents 74c0cd0 + fcb1008 commit 019dbf4

File tree

1 file changed

+4
-34
lines changed

1 file changed

+4
-34
lines changed

.github/workflows/nightlies.yml

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -58,38 +58,8 @@ 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
77-
78-
- name: Remove old uploads to save space
79-
run: |
80-
N_LATEST_UPLOADS=5
81-
82-
# Remove all _but_ the last "${N_LATEST_UPLOADS}" package versions
83-
# N.B.: `anaconda show` places the newest packages at the bottom of
84-
# the output of the 'Versions' section and package versions are
85-
# preceded with a ' + '.
86-
anaconda show scientific-python-nightly-wheels/matplotlib &> >(grep '+') | \
87-
sed 's/.* + //' | \
88-
head --lines "-${N_LATEST_UPLOADS}" > remove-package-versions.txt
89-
90-
while LANG=C IFS= read -r package_version ; do
91-
echo "Removing scientific-python-nightly-wheels/matplotlib/${package_version}"
92-
anaconda --token ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} remove \
93-
--force \
94-
"scientific-python-nightly-wheels/matplotlib/${package_version}"
95-
done <remove-package-versions.txt
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 }}

0 commit comments

Comments
 (0)