Skip to content

Commit 8aa74be

Browse files
committed
zip
1 parent 7cb1abb commit 8aa74be

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -454,20 +454,27 @@ jobs:
454454
with:
455455
folder: docs/build
456456
clean: true
457-
- name: Download ROCm wheels Linux
457+
- name: Download ROCm wheels and zip for release
458458
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
459-
uses: actions/download-artifact@v4
460-
with:
461-
name: rocm-python-wheels-Linux
462-
path: wheels/
463-
- name: Download ROCm wheels Windows
464-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
465-
uses: actions/download-artifact@v4
466-
with:
467-
name: rocm-python-wheels-Windows
468-
path: wheels/
459+
env:
460+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
461+
run: |
462+
mkdir -p release-zips
463+
464+
gh run download ${{ github.run_id }} \
465+
--name rocm-python-wheels-Linux \
466+
--dir temp-linux
467+
zip -r release-zips/rocm-python-wheels-Linux.zip temp-linux/*
468+
rm -rf temp-linux
469+
470+
gh run download ${{ github.run_id }} \
471+
--name rocm-python-wheels-Windows \
472+
--dir temp-windows
473+
zip -r release-zips/rocm-python-wheels-Windows.zip temp-windows/*
474+
rm -rf temp-windows
475+
469476
- name: Create GitHub Release
470477
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
471478
uses: softprops/action-gh-release@v2
472479
with:
473-
files: wheels/*.whl
480+
files: release-zips/*.zip

0 commit comments

Comments
 (0)