pypi-release #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Build and publish the Python package to PyPI using the Serapieum composite action. | |
| name: pypi-release | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: ['github-release'] | |
| types: [completed] | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.workflow_run.head_branch }} | |
| - name: Build and publish to PyPI | |
| uses: serapeum-org/github-actions/actions/release/pypi@pypi-release/v1 | |
| with: | |
| pypi-username: __token__ | |
| pypi-password: ${{ secrets.PYPI_PUBLISH }} | |
| python-version: '3.12' | |
| package-manager: 'uv' | |
| install-groups: "groups: dev" | |
| verify-lock: 'false' |