Skip to content

Commit

Permalink
feat: keep publishing only to main pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkersner committed Apr 15, 2024
1 parent 38ef49e commit 68773ba
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,38 +27,16 @@ jobs:
name: python-package-distributions
path: dist/

# 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://pypi.org/p/datamaxi
# permissions:
# id-token: write # IMPORTANT: mandatory for trusted publishing

# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v3
# with:
# name: python-package-distributions
# path: dist/
# - name: Publish distribution πŸ“¦ to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

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: testpypi
url: https://test.pypi.org/p/datamaxi

name: pypi
url: https://pypi.org/p/datamaxi
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

Expand All @@ -68,7 +46,5 @@ 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/

0 comments on commit 68773ba

Please sign in to comment.