Skip to content

Publish to PyPI

Publish to PyPI #10

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
jobs:
test:
uses: ./.github/workflows/tests.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/tests.yml" (source tag with sha:b70bfc14ecc16a28c1e9c8002ae69bded6a93776) : workflow is not reusable as it is missing a `on.workflow_call` trigger
publish:
name: "Publish"
runs-on: ubuntu-latest
permissions:
id-token: write
needs: test
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install pypa/build
run: pip install build
- name: Build package
run: python -m build --sdist --wheel --outdir dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1