Skip to content

Commit df5a5f3

Browse files
committed
ci: use PyPI trusted publisher for releases
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
1 parent affb9f6 commit df5a5f3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
build-and-publish:
1010
runs-on: ubuntu-latest
11+
environment: pypi
1112
permissions:
1213
contents: write
1314
id-token: write
@@ -36,7 +37,4 @@ jobs:
3637
generate_release_notes: true
3738

3839
- name: Publish to PyPI
39-
if: github.repository == 'your-org/code-review-agent'
40-
run: uv publish
41-
env:
42-
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
40+
run: uv publish --trusted-publishing always

0 commit comments

Comments
 (0)