Skip to content

Commit

Permalink
implement trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed May 5, 2023
1 parent 3858c33 commit 59dbf1d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ on:
jobs:
packages:
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/oceanspy
permissions:
id-token: write

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -47,6 +54,3 @@ jobs:
- name: Publish a Python distribution to PyPI
if: success() && github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 59dbf1d

Please sign in to comment.