Add workflow for publishing to PyPI [Test]

This commit is contained in:
Unrud 2020-03-01 00:09:41 +01:00 committed by GitHub
parent 61b7928758
commit 645d244c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
.github/workflows/pypi-publish.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: PyPI publish
on:
release:
types: [published]
push:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install dependencies
run: python -m pip install wheel
- name: Build
run: python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}