From befd670be4c6e44bf5eed95299b06e2a4163fe6e Mon Sep 17 00:00:00 2001 From: Dmitriy Sokolov Date: Wed, 4 Dec 2019 13:17:53 +0300 Subject: [PATCH] Add GitHub Action --- .github/workflows/pypi.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..ffac95a --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,32 @@ +name: PyPI Release + +on: + push: + tags: + - 'v*' + +jobs: + publish: + name: PyPI Release + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Setup Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Upgrade Setuptools + run: pip install --upgrade setuptools wheel + + - name: Build Distribution + run: python setup.py sdist bdist_wheel --universal + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} \ No newline at end of file