forked from mirrors/thatmattlove-hyperglass
add pypi release action [skip ci]
This commit is contained in:
parent
145a5c9ade
commit
32c4456182
1 changed files with 33 additions and 0 deletions
33
.github/workflows/release-pypi.yml
vendored
Normal file
33
.github/workflows/release-pypi.yml
vendored
Normal 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
|
||||
Loading…
Add table
Reference in a new issue