Skip to content

Publish to PyPI

Publish to PyPI #4

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
jobs:
tests:
uses: ./.github/workflows/test.yml

Check failure on line 9 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/publish.yml" -> "./.github/workflows/test.yml" (source tag with sha:7eb16c33b7c1070b4c3d861d1be2a16cc440b091) : workflow is not reusable as it is missing a `on.workflow_call` trigger
release:
runs-on: ubuntu-latest
needs: tests
if: needs.tests.result == 'success'
permissions:
id-token: write
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v6
- name: Build package with uv
run: uv build
- name: Publish package distributions to PyPI with uv
run: uv publish -t ${{ secrets.PYPI_TOKEN }}