Skip to content

Publish to PyPI

Publish to PyPI #10

Workflow file for this run

name: Publish to PyPI
on:
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/run-all-tests.yml

Check failure on line 8 in .github/workflows/pypi-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi-publish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/pypi-publish.yml" -> "./.github/workflows/run-all-tests.yml" (source branch with sha:18b0b999d93a98b85e5b6e96bfd713bb9c4cef3f) : workflow is not reusable as it is missing a `on.workflow_call` trigger
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine # Install the build module for pyproject.toml
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build # Builds both the sdist and wheel
twine upload --skip-existing dist/*