Skip to content

build & release

build & release #23

Workflow file for this run

name: build & release
on:
create:
tags:
- '*'
jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@master
with:
python-version: 3.8
- name: Install poetry
uses: snok/[email protected]
with:
version: 1.1.5
virtualenvs-create: true
- name: Install dependencies
run: poetry install
- name: Build and publish to PyPI
run: |
poetry build
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}