From 1b3d00ff0c20af650b9b7c8ba534898796ec6ac1 Mon Sep 17 00:00:00 2001 From: Yuwen Hu Date: Thu, 30 May 2024 13:44:30 +0800 Subject: [PATCH] temp release test --- .github/workflows/publish_sub_package.yml | 28 +++++++++++++++++------ 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish_sub_package.yml b/.github/workflows/publish_sub_package.yml index 3dd6ae4bc18cbb..3cafe3aeaf8133 100644 --- a/.github/workflows/publish_sub_package.yml +++ b/.github/workflows/publish_sub_package.yml @@ -4,6 +4,10 @@ on: push: branches: - main + pull_request: + branches: [main, ipex-llm-gpu-dependency-update] + paths: + - "llama-index-integrations/**" env: POETRY_VERSION: "1.6.1" @@ -11,7 +15,7 @@ env: jobs: publish_subpackage_if_needed: - if: github.repository == 'run-llama/llama_index' + # if: github.repository == 'run-llama/llama_index' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -29,15 +33,25 @@ jobs: id: changed-files run: | echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep -v llama-index-core | grep llama-index | grep pyproject | xargs)" >> $GITHUB_OUTPUT - - name: Publish changed packages - env: - PYPI_TOKEN: ${{ secrets.LLAMA_INDEX_PYPI_TOKEN }} + - name: Publish changed packages (llm) + # env: + # PYPI_TOKEN: ${{ secrets.LLAMA_INDEX_PYPI_TOKEN }} run: | - for file in ${{ steps.changed-files.outputs.changed_files }}; do + for file in llama-index-integrations/llms/llama-index-llms-ipex-llm/pyproject.toml; do cd `echo $file | sed 's/\/pyproject.toml//g'` poetry lock pip install -e . - poetry config pypi-token.pypi $PYPI_TOKEN - poetry publish --build + poetry publish --build --dry-run + cd - + done + - name: Publish changed packages (embedding) + # env: + # PYPI_TOKEN: ${{ secrets.LLAMA_INDEX_PYPI_TOKEN }} + run: | + for file in llama-index-integrations/embeddings/llama-index-embeddings-ipex-llm/pyproject.toml; do + cd `echo $file | sed 's/\/pyproject.toml//g'` + poetry lock + pip install -e . + poetry publish --build --dry-run cd - done