Skip to content

Commit

Permalink
fix(action): update upload to pypi using trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkleal committed Feb 6, 2024
1 parent d9a83aa commit 1274bd7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest

permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
Expand All @@ -33,7 +34,4 @@ jobs:
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 1274bd7

Please sign in to comment.