Skip to content

Commit

Permalink
Some fixes to pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
croots committed Nov 21, 2024
1 parent 0af684a commit 709d78c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
name: python-package-distributions
path: dist/

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
publish-to-pypi:
name: Publish Python distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest

environment:
name: pypi
url: https://test.pypi.org/p/<package-name>
url: https://www.pypi.org/p/<package-name>

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand All @@ -49,10 +49,10 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to TestPyPI
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
repository-url: https://www.pypi.org/legacy/

github-release:
name: >-
Expand Down

0 comments on commit 709d78c

Please sign in to comment.