Skip to content

Commit

Permalink
🔒 Use a github environment for publishing to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Galileo-Galilei committed Apr 19, 2024
1 parent bee4e90 commit ff68615
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
strategy:
matrix:
python-version: [3.11]
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
env:
PYTHON_PACKAGE: kedro_pandera
steps:
Expand Down Expand Up @@ -60,6 +64,4 @@ jobs:
- name: Publish distribution to PyPI # official action from python maintainers
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
verbose: true # trace if the upload fails

0 comments on commit ff68615

Please sign in to comment.