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