a b/.github/workflows/deploy.yml
1
name: deploy
2
3
on: push
4
5
concurrency:
6
  group: ${{ github.workflow }}-${{ github.ref }}
7
  cancel-in-progress: true
8
9
jobs:
10
  build-n-publish:
11
    runs-on: ubuntu-latest
12
    if: startsWith(github.event.ref, 'refs/tags')
13
    steps:
14
      - uses: actions/checkout@v2
15
      - name: Set up Python 3.7
16
        uses: actions/setup-python@v2
17
        with:
18
          python-version: 3.7
19
      - name: Build MMSegmentation
20
        run: |
21
          pip install wheel
22
          python setup.py sdist bdist_wheel
23
      - name: Publish distribution to PyPI
24
        run: |
25
          pip install twine
26
          twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}