2020-02-19 20:26:28 +00:00
|
|
|
name: Upload Python Package
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-05 09:38:17 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-02-19 20:26:28 +00:00
|
|
|
- name: Set up Python
|
2021-10-09 12:13:30 +00:00
|
|
|
uses: actions/setup-python@v2
|
2020-02-19 20:26:28 +00:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2021-10-09 12:13:30 +00:00
|
|
|
- name: Upgrade pip
|
|
|
|
run: python -m pip install --upgrade pip
|
|
|
|
- name: Install Poetry
|
|
|
|
uses: snok/install-poetry@v1
|
|
|
|
- name: Install deps
|
|
|
|
run: poetry install
|
|
|
|
- name: Build
|
|
|
|
run: poetry build
|
|
|
|
- name: Publish
|
2020-02-19 20:26:28 +00:00
|
|
|
env:
|
2021-10-15 06:34:07 +00:00
|
|
|
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.pypi_token }}
|
2020-02-19 20:26:28 +00:00
|
|
|
run: |
|
2021-10-15 06:34:07 +00:00
|
|
|
poetry publish -n
|