Skip to content

com

com #2

Workflow file for this run

name: ${{ github.event.inputs.index }} Build 🛠️ & Publish 📦

Check failure on line 1 in .github/workflows/pypi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi.yml

Invalid workflow file

(Line: 1, Col: 7): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event.inputs.index
on:
workflow_call:
inputs:
index:
required: true
default: 'testpypi'
type: string
jobs:
build_and_publish_distribution:
name: Build and publish distribution 📦
runs-on: ubuntu-latest
environment:
name: ${{ inputs.index }}
permissions:
id-token: write
contents: read
steps:
- name: Check out a copy of the repository
uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Build a binary wheel and a source tarball
run: uv build
- name: Run smoke tests (wheel)
uses: ./.github/actions/smoke-tests
with:
command: uv run --isolated --no-project --with dist/*.whl
- name: Run smoke tests (sdist)
uses: ./.github/actions/smoke-tests
with:
command: uv run --isolated --no-project --with dist/*.tar.gz
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to ${{ inputs.index }}
run: uv publish --index ${{ inputs.index }}