sdk/publish.sh
mrmamongo 144f2aaa22 chore: add publish script and pypirc template
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-04-20 12:14:57 +03:00

22 lines
440 B
Bash
Executable file

#!/bin/bash
set -e
API_TOKEN="${FORGEJO_TOKEN:-$1}"
if [ -z "$API_TOKEN" ]; then
echo "Usage: $0 <api_token>"
echo "Or set FORGEJO_TOKEN environment variable"
exit 1
fi
echo "Building package..."
uv run python -m build
echo "Publishing to forgejo..."
uv run twine upload \
--repository-url https://git.infra.er-gpt.ru/api/packages/pypi \
--username __token__ \
--password "$API_TOKEN" \
dist/*
echo "Done!"