mirror of
https://github.com/ggozad/oterm.git
synced 2026-10-09 16:53:20 +02:00
Remove the workflow_dispatch trigger so the only path to PyPI is a published GitHub release. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
21 lines
562 B
YAML
21 lines
562 B
YAML
name: Build & publish to pypi
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v4
|
|
with:
|
|
enable-cache: true
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version-file: "pyproject.toml"
|
|
- name: Build package
|
|
run: uv build
|
|
- name: Publish package
|
|
run: uvx twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} dist/* --non-interactive --skip-existing
|