Skip to content

Commit

Permalink
switch to using API Token pending pypi/warehouse#11096
Browse files Browse the repository at this point in the history
  • Loading branch information
h3mmy committed Jun 25, 2023
1 parent 4801e05 commit d3ba073
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,17 @@ jobs:
with:
# Update to dynamic based on environment
repository_url: https://test.pypi.org/legacy/
verbose: true
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
# TODO: Remove token flow once https://github.com/pypi/warehouse/issues/11096 is resolved
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
if: inputs.environment == 'release-pypi'
with:
# TODO: Remove token flow once https://github.com/pypi/warehouse/issues/11096 is resolved
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

- name: 🗑️ Delete packaging Artifacts
uses: geekyeggo/delete-artifact@v1
Expand Down

0 comments on commit d3ba073

Please sign in to comment.