Skip to content

Commit d1f2db3

Browse files
authored
Update python.yml
1 parent b2b58f0 commit d1f2db3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/python.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
3232
deploy:
3333
runs-on: ubuntu-latest
34+
environment:
35+
name: pypi
36+
url: https://pypi.org/p/Miraheze_PyUtils
37+
permissions:
38+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
3439
steps:
3540
- name: Cancel Previous Runs
3641
uses: styfle/[email protected]
@@ -50,9 +55,6 @@ jobs:
5055
- name: Publish to PyPi
5156
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
5257
uses: pypa/[email protected]
53-
with:
54-
user: __token__
55-
password: ${{ secrets.pypi_token }}
5658

5759
notify-irc:
5860
needs: build

0 commit comments

Comments
 (0)