From 120f9ca6c09c45bec3b8bb026c875d812df71640 Mon Sep 17 00:00:00 2001 From: zrguo <49157727+LarFii@users.noreply.github.com> Date: Sun, 27 Apr 2025 01:45:03 +0800 Subject: [PATCH] Create pypi-publish.yml --- .github/workflows/pypi-publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 00000000..ead7ba1a --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,28 @@ +name: Publish LightRAG to PyPI +on: + release: + types: [published] + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: set up python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install dependencies + run: + python -m pip install --upgrade pip + pip install build twine + + - name: Build package + run: python -m build + + - name: Publish distribution + env: + TWINE_USERNAME: __TOKEN__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: python -m twine upload dist/*