Skip to content

Commit

Permalink
Migrate from PyPI tokens to Trusted Publishers (#106)
Browse files Browse the repository at this point in the history
* Migrate from PyPI tokens to Trusted Publishers

* Update release.yml

* Update release.yml
  • Loading branch information
0x2b3bfa0 authored Sep 11, 2023
1 parent c4e24f9 commit 8fb6b05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions {{cookiecutter.project_name}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ env:

jobs:
release:
environment: pypi
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Check out the repository
Expand All @@ -34,5 +38,3 @@ jobs:
- name: Upload package
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{"{{"}} secrets.PYPI_TOKEN {{"}}"}}

0 comments on commit 8fb6b05

Please sign in to comment.