mirror of
https://github.com/katanemo/plano.git
synced 2026-06-23 15:38:07 +02:00
publish planoai package from gh action
This commit is contained in:
parent
88d14a205b
commit
90cfed6eb0
1 changed files with 34 additions and 0 deletions
34
.github/workflows/publish-pypi.yml
vendored
Normal file
34
.github/workflows/publish-pypi.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Publish planoai to PyPI
|
||||||
|
|
||||||
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue