Skip to content

Commit

Permalink
publish test to internal pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchu committed Oct 31, 2023
1 parent 06775f2 commit 56ba416
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,22 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Publish package distributions to PyPI
if: ${{ steps.check-tag.outputs.match != '' }}
uses: pypa/gh-action-pypi-publish@v1.7.1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to TestPyPI
# - name: Publish package distributions to PyPI
# if: ${{ steps.check-tag.outputs.match != '' }}
# uses: pypa/gh-action-pypi-publish@v1.8.10
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distribution to PyPI
if: ${{ steps.check-tag.outputs.match == '' }}
uses: pypa/gh-action-pypi-publish@v1.7.1
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
password: ${{ secrets.TESTPYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
verbose: true
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
repository-url: ${{ secrets.PYPI_HOST }}:${{ secrets.PYPI_PORT }}
# - name: Publish package distributions to TestPyPI
# if: ${{ steps.check-tag.outputs.match == '' }}
# uses: pypa/[email protected]
# with:
# password: ${{ secrets.TESTPYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
# verbose: true

0 comments on commit 56ba416

Please sign in to comment.