Skip to content

Commit

Permalink
Merge pull request #21 from tyg3rr/ci
Browse files Browse the repository at this point in the history
Switch to using API Token pending pypi/warehouse#11096
  • Loading branch information
h3mmy authored Jun 25, 2023
2 parents abf9323 + d3ba073 commit 4e403e4
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 4e403e4

Please sign in to comment.