File tree 1 file changed +4
-34
lines changed
1 file changed +4
-34
lines changed Original file line number Diff line number Diff line change 58
58
mv *.whl dist/
59
59
ls -l dist/
60
60
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
-
71
61
- 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 }}
You can’t perform that action at this time.
0 commit comments