From e801fd80899782aa920dabe9b72cb054f0d09cb9 Mon Sep 17 00:00:00 2001 From: nbei Date: Sun, 11 Oct 2020 13:45:54 +0800 Subject: [PATCH] add pypi --- .github/workflows/publish-to-pypi.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000000..faf62a6db5 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -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 }}