Skip to content

Commit

Permalink
Use PyPI trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
csachs committed Apr 9, 2024
1 parent 69315ae commit 7091f4d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
strategy:
matrix:
python-version: ["3.12"]
Expand All @@ -24,6 +28,3 @@ jobs:
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 7091f4d

Please sign in to comment.