Add publishing workflow

This commit is contained in:
Roman Mogylatov 2021-01-26 08:12:33 -05:00
parent 375a6ec192
commit 5ea7612687

23
.github/workflows/publishing.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Tests and linters
on:
push:
tags:
- *
jobs:
publish-source:
name: Publish source tarball
runs-on: ubuntu-latest
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: python setup.py sdist
- run: pip install twine
- run: twine upload dist/*