diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e872c57cd78b1..38942db2aa153 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -63,10 +63,12 @@ jobs: bash -x .github/workflows/scripts/build.sh wheel_name=$(find dist -name "*whl" -print0 | xargs -0 -n 1 basename) asset_name=${wheel_name//"linux"/"manylinux1"} + gradlib_wheel_name=$(find gradlib/dist -name "*whl" -print0 | xargs -0 -n 1 basename) + gradlib_asset_name=${gradlib_wheel_name//"linux"/"manylinux1"} echo "wheel_name=${wheel_name}" >> "$GITHUB_ENV" echo "asset_name=${asset_name}" >> "$GITHUB_ENV" - - name: Upload Release Asset + - name: Upload vllm Release Asset uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -75,11 +77,13 @@ jobs: asset_path: ./dist/${{ env.wheel_name }} asset_name: ${{ env.asset_name }} asset_content_type: application/* + - name: Upload gradlib Release Asset + uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.release.outputs.upload_url }} + asset_path: ./dist/${{ env.gradlib_wheel_name }} + asset_name: ${{ env.gradlib_asset_name }} + asset_content_type: application/* - # (Danielkinz): This last step will publish the .whl to pypi. Warning: untested - # - name: Publish package - # uses: pypa/gh-action-pypi-publish@release/v1.8 - # with: - # repository-url: https://test.pypi.org/legacy/ - # password: ${{ secrets.PYPI_API_TOKEN }} - # skip-existing: true diff --git a/.github/workflows/scripts/build.sh b/.github/workflows/scripts/build.sh index 13cde08333826..bcf83b5977485 100644 --- a/.github/workflows/scripts/build.sh +++ b/.github/workflows/scripts/build.sh @@ -16,3 +16,5 @@ rm -f $(which sccache) # Build $python_executable setup.py bdist_wheel --dist-dir=dist +cd gradlib +$python_executable setup.py bdist_wheel --dist-dir=../dist