Skip to content

Commit

Permalink
👷 Trusted repository publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianpb committed Mar 3, 2024
1 parent 531240a commit 813c2f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
publish:
name: Build package
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -41,8 +43,7 @@ jobs:
- name: Publish package 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
skip-existing: true
repository-url: https://test.pypi.org/legacy/
- name: Publish package 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 813c2f6

Please sign in to comment.