Skip to content

Commit 7cbe0ee

Browse files
authored
Merge pull request #139 from knopki/fix-pypi-publish
Trying to fix pypi publishing
2 parents 5b652fd + 73c7bba commit 7cbe0ee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ on:
99
workflow_dispatch:
1010

1111
jobs:
12-
pypi:
12+
pypi-publish:
1313
runs-on: ubuntu-latest
14+
# Specifying a GitHub environment is optional, but strongly encouraged
15+
environment: pypi
16+
permissions:
17+
# IMPORTANT: this permission is mandatory for Trusted Publishing
18+
id-token: write
1419
concurrency:
1520
group: release
1621

@@ -38,5 +43,3 @@ jobs:
3843

3944
- name: Publish package to PyPI
4045
uses: pypa/gh-action-pypi-publish@release/v1
41-
with:
42-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)