File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -256,3 +256,33 @@ jobs:
256
256
257
257
- name : Upload Wheels
258
258
run : anaconda --token ${{ secrets.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.WHEELS_NAME }}-*.whl --version ${{ env.PACKAGE_VERSION }}
259
+
260
+ cleanup_packages :
261
+ name : Clean up anaconda packages
262
+ needs : [upload_anaconda]
263
+ runs-on : ' ubuntu-latest'
264
+ defaults :
265
+ run :
266
+ shell : bash -el {0}
267
+ steps :
268
+ - uses : conda-incubator/setup-miniconda@v2
269
+ with :
270
+ run-post : false
271
+ channel-priority : " disabled"
272
+ channels : conda-forge
273
+ python-version : ' 3.11'
274
+
275
+ - name : Install anaconda-client
276
+ run : conda install anaconda-client
277
+
278
+ - name : Checkout repo
279
+ uses : actions/checkout@v2
280
+ with :
281
+ repository : IntelPython/devops-tools
282
+ fetch-depth : 0
283
+
284
+ - name : Cleanup old packages
285
+ run : |
286
+ python scripts/cleanup-old-packages.py \
287
+ --verbose --force --token ${{ secrets.ANACONDA_TOKEN }} \
288
+ --package dppy/${{ env.PACKAGE_NAME }} --label dev
You can’t perform that action at this time.
0 commit comments