Skip to content

Commit

Permalink
[CI] Merge python wheel publish process to release build pipeline (#247)
Browse files Browse the repository at this point in the history
ci: merge python wheel publish process to release build pipeline
  • Loading branch information
brosoul authored Sep 27, 2024
1 parent ffcc7a9 commit 10bacc6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/python-publish.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,31 @@ jobs:
RUNTIME_IMG=aibrix/runtime:${{ github.ref_name }} make docker-push-runtime
USERS_IMG=aibrix/users:${{ github.ref_name }} make docker-push-users
python-wheel-release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
name: publish
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
cd python/aibrix
python -m pip install --upgrade pip
pip install -U pip poetry
- name: Build and publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
cd python/aibrix
poetry publish --build
artifact-release:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 10bacc6

Please sign in to comment.