Skip to content

Commit b528aea

Browse files
committed
ci: pypi trusted publisher
1 parent d341c46 commit b528aea

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
@@ -10,6 +10,12 @@ jobs:
1010
publish:
1111
name: Build and Publish
1212
runs-on: ubuntu-latest
13+
environment:
14+
name: prod
15+
url: https://pypi.org/project/agrc-supervisor
16+
permissions:
17+
# IMPORTANT: this permission is mandatory for trusted publishing
18+
id-token: write
1319

1420
steps:
1521
- name: ⬇️ Set up code
@@ -33,6 +39,3 @@ jobs:
3339

3440
- name: 🚀 Publish to PyPI
3541
uses: pypa/gh-action-pypi-publish@release/v1
36-
with:
37-
user: __token__
38-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)