File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,24 +36,13 @@ jobs:
3636 - name : Checkout code
3737 uses : actions/checkout@v3
3838
39- - name : Build and publish to Test PyPI
40- if : ${{ (github.ref != 'refs/heads/main') && (github.event.label.name == 'release') }}
41- env :
42- TWINE_USERNAME : __token__
43- TWINE_PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }}
44- run : |
45- make dist
46- ls dist/
47- tar tvf dist/fmpose3d-*.tar.gz
48- python3 -m twine upload --verbose --repository testpypi dist/*
49-
5039 - name : Build and publish to PyPI
5140 if : ${{ github.event_name == 'push' }}
5241 env :
5342 TWINE_USERNAME : __token__
54- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
43+ TWINE_PASSWORD : ${{ secrets.TWINE_API_KEY }}
5544 run : |
56- make dist
45+ pip install build twine
46+ python3 -m build
5747 ls dist/
58- tar tvf dist/fmpose3d-*.tar.gz
5948 python3 -m twine upload --verbose dist/*
You can’t perform that action at this time.
0 commit comments