Publish to PyPI #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to PyPI | ||
on: | ||
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
required: true | ||
description: Tag name | ||
jobs: | ||
publish_pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "refs/tags/${{ github.event_name == 'workflow_dispatch' ? github.event.inputs.tag : github.event.release.tag_name }}" | ||
Check failure on line 21 in .github/workflows/pypi.yaml GitHub Actions / Publish to PyPIInvalid workflow file
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
- name: Build Package | ||
run: uv build | ||
- name: Publish Package | ||
run: uv publish |