Skip to content

Commit fc716ec

Browse files
committed
fix: Publish using Trusted Publisher instead of API tokens
1 parent 0ff434c commit fc716ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ on:
55
tags:
66
- "[0-9]+.[0-9]+.[0-9]+"
77
- "[0-9]+.[0-9]+.[0-9]+-[a-zA-Z0-9]+.[0-9]+"
8+
89
jobs:
910
run:
1011
name: "Build and publish release"
1112
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write # Required for trusted publishing
15+
contents: read
1216

1317
steps:
1418
- uses: actions/checkout@v4
@@ -25,4 +29,4 @@ jobs:
2529
run: uv build
2630

2731
- name: Publish
28-
run: uv publish -t ${{ secrets.PYPI_TOKEN }}
32+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)