Skip to content

Commit 8623a9e

Browse files
committed
fix: Remove token param
1 parent c24175c commit 8623a9e

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# publish.yml
2-
32
name: "Publish"
43

4+
permissions:
5+
id-token: write
6+
contents: read
7+
58
on:
69
release:
710
types: ["published"]
@@ -15,16 +18,19 @@ jobs:
1518
- uses: actions/checkout@v4
1619

1720
- name: Install uv
18-
uses: astral-sh/setup-uv@v3
21+
uses: astral-sh/setup-uv@v5
1922
with:
2023
enable-cache: true
2124
cache-dependency-glob: uv.lock
2225

2326
- name: Set up Python
2427
run: uv python install 3.11
2528

29+
- name: Set new version
30+
run: uv version ${{ github.ref_name }}
31+
2632
- name: Build
2733
run: uv build
2834

2935
- name: Publish
30-
run: uv publish -t ${{ secrets.PYPI_TOKEN }}
36+
run: uv publish

0 commit comments

Comments
 (0)