Skip to content

chore: remove test matrix #15

chore: remove test matrix

chore: remove test matrix #15

Workflow file for this run

name: PyPI Publish

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 29, Col: 27): Unexpected symbol: 'https://test'. Located at position 81 within expression: github.event_name == 'workflow_dispatch' && github.event.inputs.test_release && https://test.pypi.org/legacy/ || https://upload.pypi.org/legacy/
on:
release:
types: [created]
workflow_dispatch:
inputs:
test_release:
description: If true, publish to test.pypi.org
required: true
default: true
type: boolean
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv & Python
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
python-version-file: "pyproject.toml"
- run: uv build
- run: uv publish
env:
UV_PUBLISH_TOKEN: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.test_release && secrets.TEST_PYPI_API_TOKEN || secrets.POETRY_PYPI_TOKEN_PYPI }}
UV_PUBLISH_URL: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.test_release && https://test.pypi.org/legacy/ || https://upload.pypi.org/legacy/ }}