Add GitHub Action

This commit is contained in:
Dmitriy Sokolov 2019-12-04 13:17:53 +03:00
parent 40c17f13fc
commit befd670be4
No known key found for this signature in database
GPG Key ID: 03FE88EBBCB36640
1 changed files with 32 additions and 0 deletions

32
.github/workflows/pypi.yml vendored Normal file
View File

@ -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 }}