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 e56b49c
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ jobs:
name: Publish package
needs: [build_wheels, build_sdist]
environment: pypi
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64, dev]
permissions: write-all
steps:
- name: Download artifacts
Expand All @@ -66,15 +67,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 e56b49c

Please sign in to comment.