Skip to content

pypi-release

pypi-release #25

Workflow file for this run

# 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'