plano/.github/workflows/publish-pypi.yml
Salman Chishti 5082f087c6
Upgrade GitHub Actions to latest versions (#782)
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-02-26 12:17:32 -08:00

38 lines
679 B
YAML

name: Publish planoai to PyPI
permissions:
contents: read
on:
release:
types: [published]
jobs:
publish-pypi:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./cli
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Build package
run: uv build
- name: Publish to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: uv publish