Skip to content

Commit

Permalink
Publish to PyPI as trusted publisher (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindwe authored Feb 27, 2024
1 parent 8ba6658 commit 705b6e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
if: always()
needs: test-package
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

steps:
- name: Recover cache
Expand All @@ -78,9 +81,6 @@ jobs:
- name: Publish package to PyPI
if: needs.test-package.result == 'success'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Post status to Slack
if: ${{ success() }}
Expand Down

0 comments on commit 705b6e9

Please sign in to comment.