File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -32,26 +32,10 @@ jobs:
3232 - name : " Build Package"
3333 run : make build
3434
35- - name : Get branch names
36- id : branch-name
37- uses : tj-actions/branch-names@v5.1
38-
39- - name : " Publish to Test PyPi"
40- if : steps.branch-name.outputs.ref_branch != 'main'
41- env :
42- TWINE_USERNAME : __token__
43- TWINE_PASSWORD : ${{ secrets.TEST_PYPI_PASSWORD }}
44- TWINE_REPOSITORY_URL : https://test.pypi.org/legacy/
45- run : |
46- echo "${{ steps.branch-name.outputs.ref_branch }}"
47- twine upload dist/*
48-
49- - name : " Build and Publish to PyPi"
50- if : steps.branch-name.outputs.ref_branch == 'main'
35+ - name : " Publish to PyPi"
5136 env :
5237 TWINE_USERNAME : __token__
5338 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
5439 TWINE_REPOSITORY_URL : https://upload.pypi.org/legacy/
5540 run : |
56- echo "${{ steps.branch-name.outputs.ref_branch }}"
5741 twine upload dist/*
Original file line number Diff line number Diff line change @@ -113,4 +113,6 @@ vendors/
113113
114114.pytype
115115
116- site /
116+ site /
117+
118+ ml_base /version.txt
You can’t perform that action at this time.
0 commit comments