Skip to content

fix the missing }

fix the missing } #4

name: Publish evaluator SDK
on:
push:
tags:
- 'evaluator-sdk-v*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. evaluator-sdk-v0.1.0)'
required: true
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: 'Release Python Packages'
working-directory: packages/evaluator-sdk-py
run: |
# if workflow_dispatch is used, use the version input
if [ -n "${{ github.event.inputs.version }}" ]; then
export VERSION=${{ github.event.inputs.version }}
else
export VERSION=$(echo "$GITHUB_REF" | cut -c12-)
fi
uv sync --all-extras
# Bump every package version to $VERSION first
uv version $VERSION --package agentevals-evaluator-sdk
uv build --package agentevals-evaluator-sdk
uv publish --token ${{ secrets.PYPI_TOKEN }}