Skip to content

Commit

Permalink
fix: use trusted publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjonok committed Sep 6, 2024
1 parent 30709a0 commit cf26c7a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
needs: ruff-check
# run on tag only
if: startsWith(github.ref, 'refs/tags/')
permissions:
# this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -58,15 +61,5 @@ jobs:
- name: Build package
run: python -m build --wheel

- name: Publish package to the test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
repository-url: https://test.pypi.org/legacy/

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit cf26c7a

Please sign in to comment.