Skip to content

Commit

Permalink
Merge pull request #15 from iterative/pypi-trusted-publishers
Browse files Browse the repository at this point in the history
Migrate from PyPI tokens to Trusted Publishers
  • Loading branch information
jesper7 authored Sep 12, 2023
2 parents c30591b + 1a1bd31 commit aa81a18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ permissions:

jobs:
pip:
environment: pypi
permissions:
contents: read
id-token: write
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand All @@ -27,6 +31,3 @@ jobs:
twine check dist/*
- name: Publish packages to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit aa81a18

Please sign in to comment.