Skip to content

Publish to PyPI

Publish to PyPI #1

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*.*.*"
jobs:
test:
uses: ./.github/workflows/ci.yml

Check failure on line 10 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/ci.yml" (source tag with sha:687bca7047aeaa96cd7784395c72fd7bced07e48) : workflow is not reusable as it is missing a `on.workflow_call` trigger
publish:
needs: test
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install build
- run: cd sdk && python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: sdk/dist/
print-hash: true