Skip to content

Commit

Permalink
chore: apply Trusted Publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Sep 2, 2024
1 parent edd24cd commit eb08372
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
publish:
runs-on: ubuntu-latest
name: "Publish library"
environment: publish
permissions:
id-token: write

steps:
- name: Check out
Expand All @@ -26,7 +29,6 @@ jobs:
sed -i'' -E "s/version = \"0.0.0\"/version = \"$VERSION\"/g" pyproject.toml
uvx --from build pyproject-build --installer uv
- name: Release to PyPI
run: |
uvx twine upload dist/* --non-interactive \
--username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to PyPI
id: publish-pypi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit eb08372

Please sign in to comment.