Skip to content

Commit

Permalink
ci(pypi): use PyPi token instead of username and password
Browse files Browse the repository at this point in the history
Apparently username and password is no longer a supported deployment method:
https://github.com/pollination/queenbee/actions/runs/9054289912/job/24873984153#step:8:3423
  • Loading branch information
AntoineDao committed May 12, 2024
1 parent d2aeafe commit 74621bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ jobs:
echo "::set-output name=tag::$nextRelease"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
outputs:
tag: ${{ steps.new_release.outputs.tag }}

Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
echo "Building package for distribution"
poetry build
echo "Pushing new version to PyPi"
poetry config http-basic.pypi $PYPI_USERNAME $PYPI_PASSWORD
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish

0 comments on commit 74621bf

Please sign in to comment.