Skip to content

Commit

Permalink
Merge pull request open-mmlab#149 from nbei/add-pypi-package
Browse files Browse the repository at this point in the history
add pypi
  • Loading branch information
nbei authored Oct 11, 2020
2 parents 0310987 + 72d067b commit 0070e58
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: deploy

on: push

jobs:
build-n-publish:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build MMEditing
run: python setup.py sdist
- name: Publish distribution to PyPI
run: |
pip install twine
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}

0 comments on commit 0070e58

Please sign in to comment.