Skip to content

Commit 75c6b31

Browse files
authored
add deploy.yaml (#1800)
1 parent 326bbf0 commit 75c6b31

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
name: deploy
3+
4+
on: push
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
build-n-publish:
12+
runs-on: ubuntu-18.04
13+
if: startsWith(github.event.ref, 'refs/tags')
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python 3.7
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.7
20+
- name: Install torch
21+
run: pip install torch
22+
- name: Build MMDet3D
23+
run: python setup.py sdist
24+
- name: Publish distribution to PyPI
25+
run: |
26+
pip install twine
27+
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)