Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Update poetry-publish.yml

Sarah Wooders8a04a6cb94da
diff --git a/.github/workflows/poetry-publish.yml b/.github/workflows/poetry-publish.yml
index f32479d10..86717ff77 100644
--- a/.github/workflows/poetry-publish.yml
+++ b/.github/workflows/poetry-publish.yml
@@ -5,11 +5,26 @@ on:
workflow_dispatch:
jobs:
- build:
+ build-and-publish:
+ name: Build and Publish to PyPI
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- - name: Build and publish to pypi
- uses: JRubics/[email protected]
+ - name: Check out the repository
+ uses: actions/checkout@v2
+ - name: Set up Python
+ uses: actions/setup-python@v2
with:
- pypi_token: ${{ secrets.PYPI_TOKEN }}
+ python-version: 3.9
+ - name: Install poetry
+ run: |
+ curl -sSL https://install.python-poetry.org | python3 -
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
+ - name: Configure poetry
+ run: |
+ poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
+ - name: Build the Python package
+ run: poetry build
+ - name: Publish the package to PyPI
+ run: poetry publish
+ env:
+ POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}