Skip to content

Commit 75976a1

Browse files
committed
.github: add testpypi upload
1 parent 156ccfb commit 75976a1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
name: ${{ matrix.name }}
5050
runs-on: ${{ matrix.os }}
5151
needs: test
52-
# if: ${{ startsWith(github.ref, 'refs/tags/v') }}
52+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
5353

5454
strategy:
5555
fail-fast: false
@@ -105,10 +105,10 @@ jobs:
105105
run: |
106106
python -m twine check dist/leep*.tar.*
107107
108-
#- name: Upload package
109-
# env:
110-
# PYPI_REPOSITORY: pypi
111-
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
112-
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
113-
# run: |
114-
# python -m twine upload --repository ${PYPI_REPOSITORY} dist/*
108+
- name: Upload package
109+
env:
110+
PYPI_REPOSITORY: testpypi
111+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
112+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
113+
run: |
114+
python -m twine upload --repository ${{ env.PYPI_REPOSITORY }} dist/*

0 commit comments

Comments
 (0)