Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/release_llama_index_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
defaults:
run:
working-directory: ./llama-index-server
if: github.event_name == 'push'
if: |
github.event_name == 'push' &&
!startsWith(github.ref, 'refs/heads/release/llama-index-server-v')

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -101,13 +103,18 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Build package
run: poetry build
- name: Get current version
id: get_version
run: |
version=$(poetry version -s)
echo "current_version=${version}" >> "$GITHUB_OUTPUT"

- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.LLAMA_INDEX_PYPI_TOKEN }}
run: poetry publish --build --no-interaction
- name: Build and publish to PyPI
uses: JRubics/poetry-publish@v2.1
with:
python_version: "3.11"
pypi_token: ${{ secrets.LLAMA_INDEX_PYPI_TOKEN }}
ignore_dev_requirements: "yes"

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
Loading