Skip to content

Commit 973a48c

Browse files
committed
build: update trusted publishing
1 parent bfd0447 commit 973a48c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
7676
if: success() && startsWith(github.ref, 'refs/tags/') && github.event_name != 'schedule'
7777
runs-on: ubuntu-latest
7878

79+
permissions:
80+
id-token: write # for trusted publishing on PyPi
81+
contents: write # allows writing releases
82+
7983
steps:
8084
- uses: actions/checkout@v4
8185
with:
@@ -93,8 +97,6 @@ jobs:
9397
9498
- name: 🚢 Publish to PyPI
9599
uses: pypa/gh-action-pypi-publish@release/v1
96-
with:
97-
password: ${{ secrets.TWINE_API_KEY }}
98100

99101
- uses: softprops/action-gh-release@v1
100102
with:

0 commit comments

Comments
 (0)