Skip to content

Commit 2d33b01

Browse files
authored
Merge pull request #50 from tago-io/added_trusted_publisher
Added Trusted Publishing
2 parents 973fd7c + 86e6c49 commit 2d33b01

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
name: "Deploy package to PyPI"
3737
runs-on: ubuntu-latest
3838
needs: [build]
39+
permissions:
40+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
3941

4042
steps:
4143
- uses: actions/checkout@v4
@@ -55,9 +57,7 @@ jobs:
5557
run: uv build
5658

5759
- name: Publish to PyPI
58-
env:
59-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
60-
run: uv publish --token $PYPI_TOKEN
60+
uses: pypa/gh-action-pypi-publish@release/v1
6161

6262
docs:
6363
name: "Deploy Docs"

0 commit comments

Comments
 (0)