Skip to content

Commit 0cffe3b

Browse files
committed
Allow testpypi runs
1 parent 2c892ca commit 0cffe3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cd-pypi.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ on:
1919

2020
jobs:
2121
deploy:
22-
if: ${{ github.ref_type == 'tag' || github.event_name == 'release' }}
22+
# TODO dont merge, just debugging why this gets skipped
23+
# if: ${{ github.ref_type == 'tag' || github.event_name == 'release' || inputs.test_pypi }}
2324
runs-on: ubuntu-latest
2425
defaults:
2526
run:
@@ -62,6 +63,7 @@ jobs:
6263
pip install setuptools wheel twine build
6364
6465
- name: Check version
66+
if: ${{ !inputs.testpypi }}
6567
run: |
6668
if [ -f "setup.py" ]; then
6769
release=${{ github.ref_name }}
@@ -76,6 +78,7 @@ jobs:
7678
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
7779
run: |
7880
python -m build
81+
twine check dist/*
7982
twine upload dist/*
8083
8184
- name: Build and publish to testpypi
@@ -85,4 +88,5 @@ jobs:
8588
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_API_TOKEN }}
8689
run: |
8790
python -m build
91+
twine check dist/*
8892
twine upload --repository testpypi dist/*

0 commit comments

Comments
 (0)