Skip to content

Commit

Permalink
fix permissions for publishing to pypi (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 committed Jan 5, 2024
1 parent 5319fb4 commit f26035c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
name: Publish to PyPI
runs-on: ubuntu-latest
if: github.repository == 'icesat2py/icepyx'
permissions:
id-token: write

steps:
- name: Checkout
Expand Down Expand Up @@ -51,13 +53,9 @@ jobs:
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
permissions:
id-token: write
with:
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
permissions:
id-token: write
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit f26035c

Please sign in to comment.