Skip to content

Commit c2e3154

Browse files
author
Alan Christie
committed
ci: Another fix for trusted publishing
1 parent 12d9344 commit c2e3154

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ on:
2727
jobs:
2828
build-and-publish:
2929
runs-on: ubuntu-latest
30+
permissions:
31+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
3032
steps:
3133
- name: Checkout
3234
uses: actions/checkout@v4
@@ -46,6 +48,3 @@ jobs:
4648
python -m build --sdist --wheel --outdir dist/
4749
- name: Publish
4850
uses: pypa/gh-action-pypi-publish@release/v1
49-
with:
50-
user: ${{ secrets.PYPI_USERNAME }}
51-
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)