Skip to content

Commit

Permalink
temp release test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscilloscope98 committed May 30, 2024
1 parent d2ec511 commit 9c6db14
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/publish_sub_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit 9c6db14

Please sign in to comment.