Skip to content

Commit

Permalink
Publish package using trusted publisher management
Browse files Browse the repository at this point in the history
PWPA-1903
  • Loading branch information
Leonardo Rosenbach committed Nov 29, 2024
1 parent c90db54 commit a1cb397
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ jobs:
if: startsWith(github.event.ref, 'refs/tags')

runs-on: ubuntu-latest
permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Install build
run: |
python -m pip install --upgrade pip
Expand All @@ -27,10 +30,7 @@ jobs:
run: |
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_token }}
uses: pypa/gh-action-pypi-publish@v1.12.2
- name: GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit a1cb397

Please sign in to comment.