From 5557372789edc8944fa6ee734ec4e817818f583c Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Thu, 25 Dec 2025 18:18:09 -0800 Subject: [PATCH] publish planoai package from gh action (#657) * publish planoai package from gh action * fix comments --- .github/workflows/publish-pypi.yml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/publish-pypi.yml diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml new file mode 100644 index 00000000..7b37489a --- /dev/null +++ b/.github/workflows/publish-pypi.yml @@ -0,0 +1,37 @@ +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@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + + - name: install poetry + run: | + export POETRY_VERSION=2.2.1 + curl -sSL https://install.python-poetry.org | python3 - + export PATH="$HOME/.local/bin:$PATH" + + - name: Build and publish to PyPI + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} + run: | + poetry publish --build