Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
jobs:
build-and-upload:
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write
Comment thread
Copilot marked this conversation as resolved.

steps:
- name: Check out the release commit
Expand All @@ -22,10 +26,8 @@ jobs:
- name: Build sdist and wheel
run: |
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Check the distribution
run: |
python -m twine check --strict dist/*
python -m twine upload dist/*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1
Loading