Skip to content

Commit 10c1f94

Browse files
authored
Merge branch 'master' into version_470
2 parents 2174c6b + 809a36a commit 10c1f94

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- "**"
77
tags:
88
- v*
99
pull_request:
@@ -419,41 +419,61 @@ jobs:
419419
420420
build-and-deploy-docs:
421421
runs-on: ubuntu-latest
422-
needs: [check-python-style, build-python-wheels]
422+
needs: [check-python-style, build-python-wheels, build-python-wheels-rocm]
423423

424+
permissions:
425+
contents: write
424426
steps:
425427
- uses: actions/checkout@v4
426-
427428
- name: Set up Python 3.10.11
428429
uses: actions/setup-python@v5
429430
with:
430431
python-version: "3.10.11"
431-
432432
- name: Download CTranslate2 wheels
433433
uses: actions/download-artifact@v4
434434
with:
435435
pattern: python-wheels-${{ runner.os }}-*
436436
merge-multiple: true
437437
path: .
438-
439438
- name: Install CTranslate2 wheel
440439
run: |
441440
pip install *cp310*manylinux*x86_64.whl
442-
443441
- name: Install dependencies to build docs
444442
working-directory: docs
445443
run: |
446444
python -m pip install -r requirements.txt
447-
448445
- name: Build docs
449446
working-directory: docs
450447
run: |
451448
python generate.py python
452449
sphinx-build . build
453-
454450
- name: Deploy docs
455451
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
456452
uses: JamesIves/github-pages-deploy-action@v4
457453
with:
458454
folder: docs/build
459455
clean: true
456+
- name: Download ROCm wheels and zip for release
457+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
458+
env:
459+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
460+
run: |
461+
mkdir -p release-zips
462+
463+
gh run download ${{ github.run_id }} \
464+
--name rocm-python-wheels-Linux \
465+
--dir temp-linux
466+
zip -r release-zips/rocm-python-wheels-Linux.zip temp-linux/*
467+
rm -rf temp-linux
468+
469+
gh run download ${{ github.run_id }} \
470+
--name rocm-python-wheels-Windows \
471+
--dir temp-windows
472+
zip -r release-zips/rocm-python-wheels-Windows.zip temp-windows/*
473+
rm -rf temp-windows
474+
475+
- name: Create GitHub Release
476+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
477+
uses: softprops/action-gh-release@v2
478+
with:
479+
files: release-zips/*.zip

0 commit comments

Comments
 (0)