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 + 8dc30fd commit 7dff87b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 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
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: poetry run pytest tests/unit

- name: Run system tests
if: github.event_name == 'merge_group'
if: github.event_name == 'merge_group' && matrix.python-version == '3.10'
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
CO_API_KEY: ${{ secrets.CO_API_KEY }}
Expand Down

0 comments on commit 7dff87b

Please sign in to comment.