Skip to content

Commit

Permalink
Switch the release workflow to using a trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bach-by committed Jan 26, 2024
1 parent 3611cc3 commit 6ffa5ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/devpi-plumber
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -21,6 +26,3 @@ jobs:
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 6ffa5ac

Please sign in to comment.