Skip to content

0.2.3

0.2.3 #4

name: Publish to PyPI
on:
workflow_dispatch:
release:
types: [created]
jobs:
build-and-publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- 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 }}