Skip to content

Commit

Permalink
Disable publishing on PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbogd committed Feb 12, 2024
1 parent 987669b commit ae7de46
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,38 +64,38 @@ jobs:
name: python-wheels
path: ./wheelhouse/*.whl

publish-test-pypi:
name: Publish to Test PyPI
permissions:
id-token: write
environment:
name: test
runs-on: ubuntu-latest
needs: [build_wheels]
if: github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: python-wheels
path: dist
- name: Publish package distributions to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
#publish-test-pypi:
#name: Publish to Test PyPI
#permissions:
#id-token: write
#environment:
#name: test
#runs-on: ubuntu-latest
#needs: [build_wheels]
#if: github.event.action == 'published'
#steps:
#- uses: actions/download-artifact@v3
#with:
#name: python-wheels
#path: dist
#- name: Publish package distributions to Test PyPI
#uses: pypa/gh-action-pypi-publish@release/v1
#with:
#repository-url: https://test.pypi.org/legacy/

publish-pypi:
name: Publish to PyPI
permissions:
id-token: write
environment:
name: production
runs-on: ubuntu-latest
needs: [build_wheels]
if: github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: python-wheels
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
#publish-pypi:
#name: Publish to PyPI
#permissions:
#id-token: write
#environment:
#name: production
#runs-on: ubuntu-latest
#needs: [build_wheels]
#if: github.event.action == 'published'
#steps:
#- uses: actions/download-artifact@v3
#with:
#name: python-wheels
#path: dist
#- name: Publish package distributions to PyPI
#uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit ae7de46

Please sign in to comment.