zrguo commited on
Commit
4a3ef3d
·
1 Parent(s): bf67edb

Create pypi-publish.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/pypi-publish.yml +28 -0
.github/workflows/pypi-publish.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Publish LightRAG to PyPI
2
+ on:
3
+ release:
4
+ types: [published]
5
+
6
+ jobs:
7
+ build-and-publish:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - name: set up python
12
+ uses: actions/setup-python@v5
13
+ with:
14
+ python-version: '3.10'
15
+
16
+ - name: Install dependencies
17
+ run:
18
+ python -m pip install --upgrade pip
19
+ pip install build twine
20
+
21
+ - name: Build package
22
+ run: python -m build
23
+
24
+ - name: Publish distribution
25
+ env:
26
+ TWINE_USERNAME: __TOKEN__
27
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
28
+ run: python -m twine upload dist/*