Skip to content

Commit

Permalink
Change how poetry uploads to pypi in cd.yml (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgkwill committed Nov 14, 2023
1 parent 682edb9 commit 5e2fa3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
api-token: ${{ steps.mint-token.outputs.api-token}}
permissions:
contents: write
id-token: write
id-token: write
needs: [build-artifacts, test-artifact-install, test-artifact-use]

steps:
Expand Down Expand Up @@ -204,7 +204,6 @@ jobs:
- name: Publish to PyPI
if: steps.check-version.outputs.prerelease != 'true'
run: |
poetry config pypi-token.pypi ${{ steps.mint-token.outputs.api-token }}
mkdir dist
cp lava* dist/.
poetry publish
poetry publish -u __token__ -p '${{ steps.mint-token.outputs.api-token }}'

0 comments on commit 5e2fa3d

Please sign in to comment.