Skip to content

v0.2.2

v0.2.2 #6

Workflow file for this run

name: PyPI CD
on:
release:
types: [published]
jobs:
pypi:
name: Build and Upload Release
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/llm-toolkit
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# ----------------
# Set Up
# ----------------
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
# ----------------
# Install Deps
# ----------------
- name: Install Dependencies
run: |
poetry install --no-interaction --no-root
poetry self add "poetry-dynamic-versioning[plugin]"
# ----------------
# Build & Publish
# ----------------
- name: Build
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1