File tree Expand file tree Collapse file tree 2 files changed +8
-25
lines changed
Expand file tree Collapse file tree 2 files changed +8
-25
lines changed Original file line number Diff line number Diff line change 1- name : Release
2-
3- on :
4- push :
5- tags :
6- - ' v*'
7- - ' [0-9]+.[0-9]+.[0-9]+'
1+ name : Test Package
82
93jobs :
104 test :
3428 - name : Check package
3529 run : |
3630 twine check dist/*
37-
38- - name : Publish to Test PyPI
39- env :
40- TWINE_USERNAME : __token__
41- TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
42- run : |
43- twine upload --repository testpypi dist/*
44- if : env.TWINE_PASSWORD != ''
45- continue-on-error : true
46-
47- - name : Publish to PyPI
48- env :
49- TWINE_USERNAME : __token__
50- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
51- run : |
52- twine upload dist/*
53- if : env.TWINE_PASSWORD != '' && startsWith(github.ref, 'refs/tags/')
31+
Original file line number Diff line number Diff line change 11all : build upload
22
33build :
4+ pip install build twine
45 python -m build
6+ twine check dist/*
57
6- upload :
8+ upload-prod : build
79 python -m twine upload dist/*
810
11+ upload-test : build
12+ python -m twine --repository testpypi upload dist/*
13+
914clean :
1015 rm -rf build/ dist/ * .egg-info/ __pycache__/ .pytest_cache/ .mypy_cache/
1116 find . -type f -name " *.pyc" -delete
You can’t perform that action at this time.
0 commit comments