Skip to content

Commit

Permalink
feat: use trusted publishing for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSchmidl committed Jan 2, 2025
1 parent 2eff01c commit 19b7e79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [build-source-distribution, build-manylinux-wheels]
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- name: Download packages
Expand All @@ -154,7 +158,4 @@ jobs:
find dist -type f -exec mv {} dist/ \;
find dist/* -type d -exec rmdir {} \; || true
- name: Publish package to PyPi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/[email protected]
2 changes: 1 addition & 1 deletion gutenTAG/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = "1.4.1"
__version__: str = "1.4.2"

0 comments on commit 19b7e79

Please sign in to comment.