Skip to content

Commit

Permalink
Use PyPI API Token for publishing
Browse files Browse the repository at this point in the history
Signed-off-by: Max Lambrecht <[email protected]>
  • Loading branch information
maxlambrecht committed Mar 30, 2024
1 parent e54e629 commit 4d5d8b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -29,12 +31,12 @@ jobs:
run: |
cd spiffe
make build
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_TOKEN }}
poetry publish
# Conditional step for spiffe-tls module
- name: Publish spiffe-tls
if: startsWith(github.ref, 'refs/tags/spiffe-tls-')
run: |
cd spiffe-tls
make build
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_TOKEN }}
poetry publish

0 comments on commit 4d5d8b5

Please sign in to comment.