Skip to content

Small fix for ollama truncation check. Small fix for pythonic tool re… #87

Small fix for ollama truncation check. Small fix for pythonic tool re…

Small fix for ollama truncation check. Small fix for pythonic tool re… #87

Workflow file for this run

---
name: Build and Publish
on:
push:
tags: ["v*"]
jobs:
build-and-publish:
name: Build and Publish
environment: protected
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@71cf2267d89c5cb81562390fa70a37fa40b1305e
- name: Setup Python
uses: actions/setup-python@cfd55ca82492758d853442341ad4d8010466803a
with:
python-version: "3.10"
- name: Install Poetry
uses: abatilo/actions-poetry@b8f6fe29ba2eb78e0d45ccbf41cd14154c4e25b2
- name: Configure Poetry
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Install package
run: poetry install
- name: Validate version
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
POETRY_VERSION=$(poetry version -s)
if [ "$TAG_VERSION" != "$POETRY_VERSION" ]; then
echo "Tag ($TAG_VERSION) doesn't match pyproject.toml ($POETRY_VERSION)"
exit 1
fi
- name: Build package
run: poetry build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@987f11e872eb5ca67aad6a4fe531bd3089142c60