2021-01-01 14:53:19 -07:00
|
|
|
name: Release to PyPI
|
2021-01-02 17:09:58 -07:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
2021-01-01 14:53:19 -07:00
|
|
|
|
|
|
|
jobs:
|
2021-01-03 10:31:52 -07:00
|
|
|
release:
|
|
|
|
name: Release to PyPI
|
2021-01-01 14:53:19 -07:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-12-11 17:49:29 -05:00
|
|
|
python-version: [3.9]
|
|
|
|
poetry-version: [1.2.2]
|
2021-01-03 10:31:52 -07:00
|
|
|
os: [ubuntu-latest]
|
|
|
|
runs-on: ubuntu-latest
|
2021-01-01 14:53:19 -07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Git Checkout
|
2022-12-11 17:49:29 -05:00
|
|
|
uses: actions/checkout@v3
|
2021-01-01 14:53:19 -07:00
|
|
|
|
|
|
|
- name: Install Python
|
2022-12-11 17:49:29 -05:00
|
|
|
uses: actions/setup-python@v3
|
2021-01-01 14:53:19 -07:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Install Poetry
|
2022-12-11 17:49:29 -05:00
|
|
|
uses: abatilo/actions-poetry@v2.2.0
|
2021-01-01 14:53:19 -07:00
|
|
|
with:
|
|
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
|
|
|
|
|
|
- name: Build hyperglass
|
|
|
|
run: |
|
|
|
|
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
|
2021-01-02 16:52:06 -07:00
|
|
|
poetry build
|
2021-01-01 14:53:19 -07:00
|
|
|
|
|
|
|
- name: Publish hyperglass release
|
|
|
|
run: poetry publish
|