Skip to content

deploy_pypi

deploy_pypi #15

Workflow file for this run

name: deploy_pypi
on:
release:
types: [ published ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set up Poetry
run: |
pip install poetry
poetry config virtualenvs.in-project true
- name: Cache poetry venv
uses: actions/cache@v2
with:
path: .venv
key: venv-nodev-python3.7-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-dev
- name: Build & Publish
run: poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}