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 0b634b3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,24 @@ 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
pip install build
- name: Build package
run: |
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_token }}
- name: GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 0b634b3

Please sign in to comment.