Skip to content

Commit

Permalink
Merge pull request #68 from pinecone-io/pypi-token-cd
Browse files Browse the repository at this point in the history
use pypi token for publish in CD
  • Loading branch information
acatav authored Jan 15, 2024
2 parents 9661a95 + c2b3538 commit 3890ae1
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ jobs:
with:
title: Release ${{ env.VERSION }}

- name: Check python versions
run: |
python --version
python3 --version
which python3.10
python3.10 --version
- name: Build and publish to pypi
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2

- name: Publish to pypi
run: |
curl -sSL https://install.python-poetry.org | python3.10 -
poetry publish -u pinecone -p ${{ secrets.PYPI_PASSWORD }} --build
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build

0 comments on commit 3890ae1

Please sign in to comment.