Skip to content

Commit

Permalink
Configure trusted publishing to PyPI (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
MtkN1 committed May 11, 2024
1 parent 6dd4e5e commit ed28570
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ permissions:
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/pybotters/
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -30,6 +35,3 @@ jobs:
pipx run --spec build pyproject-build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ed28570

Please sign in to comment.