Skip to content

Drop setup() everywhere; db is explicit on insert/update/delete #3

Drop setup() everywhere; db is explicit on insert/update/delete

Drop setup() everywhere; db is explicit on insert/update/delete #3

Workflow file for this run

name: Publish to PyPI
on:
push:
branches: [main]
tags: ["v*"]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build tooling
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build sdist and wheel
run: python -m build
- name: Check distributions
run: twine check dist/*
- name: Publish (skip if version already on PyPI)
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}
run: twine upload --skip-existing dist/*