File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ # 打 v* tag 或手动触发时构建并发布到 PyPI。
4+ # 通过 PyPI Trusted Publishing 授权,仓库里不保存任何长期凭证。
5+ on :
6+ push :
7+ tags :
8+ - " v*"
9+ workflow_dispatch :
10+
11+ jobs :
12+ publish :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ id-token : write # Trusted Publishing 换取短期令牌所必需
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.10"
23+
24+ - name : Build sdist and wheel
25+ run : |
26+ python -m pip install --upgrade build twine
27+ python -m build
28+ twine check dist/*
29+
30+ - name : Publish to PyPI
31+ uses : pypa/gh-action-pypi-publish@v1.14.2
Original file line number Diff line number Diff line change 11[project ]
22name = " qca"
3- version = " 0.1.0 "
3+ version = " 0.0.1.dev1 "
44description = " Typed synchronous and asynchronous clients for Qoder Cloud Agents"
55authors = [{name = " Qoder" }]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments