Skip to content

Commit

Permalink
Improve publish actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimes committed Dec 30, 2023
1 parent 8350a6e commit c2b5b32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,16 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Publish
if: github.event.inputs.repository == 'pypi'
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload --repository ${{ github.event.inputs.repository }} dist/*
- name: 'Publish to TestPyPI'
if: github.event.inputs.repository == 'testpypi'
env:
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
run: |
twine upload --repository ${{ github.event.inputs.repository }} dist/*

0 comments on commit c2b5b32

Please sign in to comment.