diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml deleted file mode 100644 index 81001f25..00000000 --- a/.github/workflows/python-publish.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Upload Python Package - -on: - release: - types: [published] - -jobs: - deploy: - 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 diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index b5b30ec2..686e97e5 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -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: