Skip to content

Commit

Permalink
reverted: pypi-publish and test-pypi-publish from workflows/python-pa…
Browse files Browse the repository at this point in the history
…ckage.yml
  • Loading branch information
pbrod committed Oct 3, 2024
1 parent 8eb39cc commit c357c44
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,57 +81,3 @@ jobs:
name: python-package-distributions
path: dist/

# testpypi-publish:
# needs: release1
# if: needs.release1.outputs.released == 'true'
# runs-on: ubuntu-latest
# permissions:
# # IMPORTANT: this permission is mandatory for trusted publishing
# id-token: write
# # Dedicated environments with protections for publishing are strongly recommended.
# environment:
# name: pypi
# # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
# url: https://test.pypi.org/p/nvector
#
# steps:
# - name: Retrieve release distributions
# uses: actions/download-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
#
# - name: Publish release distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# - name: Test install from TestPyPI
# run: |
# pip install \
# --index-url https://test.pypi.org/simple/ \
# --extra-index-url https://pypi.org/simple/ \
# nvector

pypi-publish:
runs-on: ubuntu-latest
needs: release1
if: needs.release1.outputs.released == 'true'
# needs: testpypi-publish

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

# Dedicated environments with protections for publishing are strongly recommended.
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
url: https://pypi.org/p/nvector

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c357c44

Please sign in to comment.