File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 19
19
20
20
jobs :
21
21
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 }}
23
24
runs-on : ubuntu-latest
24
25
defaults :
25
26
run :
62
63
pip install setuptools wheel twine build
63
64
64
65
- name : Check version
66
+ if : ${{ !inputs.testpypi }}
65
67
run : |
66
68
if [ -f "setup.py" ]; then
67
69
release=${{ github.ref_name }}
76
78
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
77
79
run : |
78
80
python -m build
81
+ twine check dist/*
79
82
twine upload dist/*
80
83
81
84
- name : Build and publish to testpypi
85
88
TWINE_PASSWORD : ${{ secrets.PYPI_TEST_API_TOKEN }}
86
89
run : |
87
90
python -m build
91
+ twine check dist/*
88
92
twine upload --repository testpypi dist/*
You can’t perform that action at this time.
0 commit comments