File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : deploy
2
2
3
- on : push
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' publish*'
7
+ tags :
8
+ - ' v*'
4
9
5
10
jobs :
6
11
build-n-publish :
7
12
runs-on : ubuntu-22.04
8
- if : startsWith(github.event.ref, 'refs/tags')
9
13
container :
10
14
image : openxrlab/xrprimer_ci:manylinux2014_x86_64_torch1110_mmcv170
11
15
strategy :
20
24
python setup.py bdist_wheel
21
25
- name : Publish distribution to PyPI
22
26
run : |
23
- source /opt/miniconda/etc/profile.d/conda.sh && conda activate py-${{ matrix.python-version }}
24
27
for i in $( ls dist/*-linux_x86_64.whl ); do auditwheel repair $i; done
25
- for i in $( ls dist/*-linux_x86_64.whl ); do mv $i ${i%-linux*}-manylinux2014_x86_64.whl; done
26
28
du -sh wheelhouse/*
27
29
for i in $( ls wheelhouse/*.whl ); do auditwheel show $i; done
28
- twine upload wheelhouse/* -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
30
+ twine upload wheelhouse/* -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments