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 authored and StephanErb committed Jan 26, 2024
1 parent 05c3c92 commit 1a44679
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
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 1a44679

Please sign in to comment.