add pypi release action [skip ci]

This commit is contained in:
checktheroads 2021-01-01 14:53:19 -07:00
parent 145a5c9ade
commit 32c4456182

33
.github/workflows/release-pypi.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Release to PyPI
on: [release]
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: [3.6]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Build hyperglass
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry build -f sdist
- name: Publish hyperglass release
run: poetry publish