Skip to content

Merge pull request #169 from MAIF/add_pypi_to_ci #1

Merge pull request #169 from MAIF/add_pypi_to_ci

Merge pull request #169 from MAIF/add_pypi_to_ci #1

Workflow file for this run

name: Publish to Pypi
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # regex to match semantic versioning tags
jobs:
tests:
uses: ./.github/workflows/main.yml

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/publish.yaml" -> "./.github/workflows/main.yml" (source tag with sha:7a9dcd5c28c869638dc2759f93551eb90f4156ee) : workflow is not reusable as it is missing a `on.workflow_call` trigger
publish:
name: publish
needs: [main] # require main to pass before publish runs
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.10
- name: Build package
run: |
python -m pip install -U pip build
python -m build
- name: Publish
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}