Skip to content

Commit 3890ae1

Browse files
authored
Merge pull request #68 from pinecone-io/pypi-token-cd
use pypi token for publish in CD
2 parents 9661a95 + c2b3538 commit 3890ae1

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/CD.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@ jobs:
3434
with:
3535
title: Release ${{ env.VERSION }}
3636

37-
- name: Check python versions
38-
run: |
39-
python --version
40-
python3 --version
41-
which python3.10
42-
python3.10 --version
43-
44-
- name: Build and publish to pypi
37+
- name: Install Poetry
38+
uses: snok/install-poetry@v1
39+
with:
40+
version: 1.3.2
41+
42+
- name: Publish to pypi
4543
run: |
46-
curl -sSL https://install.python-poetry.org | python3.10 -
47-
poetry publish -u pinecone -p ${{ secrets.PYPI_PASSWORD }} --build
44+
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
45+
poetry publish --build

0 commit comments

Comments
 (0)