Skip to content

0.2.1

0.2.1 #3

name: Publish to PyPI
on:
workflow_dispatch:
release:
types: [created]
jobs:
build-and-publish:
name: Publish Python distributions to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
# Install system-level dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y graphviz libgraphviz-dev
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install --no-dev
- name: Package Distribution
run: |
poetry build
- name: Publish Package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}