Skip to content

Commit 5e893c7

Browse files
committed
pypi workflow
1 parent 79ba3d2 commit 5e893c7

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.12"
21+
22+
- run: python -m pip install -U build
23+
24+
- run: python -m build
25+
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
name: dist
29+
path: dist/*
30+
31+
publish:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
environment: pypi
35+
permissions:
36+
contents: read
37+
id-token: write
38+
39+
steps:
40+
- uses: actions/download-artifact@v4
41+
with:
42+
name: dist
43+
path: dist
44+
45+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pageindex-condb"
7-
version = "0.4.0"
7+
version = "1.0"
88
description = "KV-cache native context database with reasoning-based tree retrieval"
99
readme = "README.md"
1010
requires-python = ">=3.9"

0 commit comments

Comments
 (0)