1 Commits

Author SHA1 Message Date
Vectry
2c83b945ab feat: auto-create Gitea releases on tag push and fix PyPI publish venv
All checks were successful
Publish npm packages / publish (push) Successful in 56s
Deploy AgentLens / deploy (push) Successful in 1m50s
Publish PyPI package / publish (push) Successful in 18s
2026-02-11 00:43:36 +00:00
2 changed files with 15 additions and 0 deletions

View File

@@ -59,6 +59,19 @@ jobs:
docker compose logs web --tail 50
exit 1
- name: Create Gitea Release
if: startsWith(gitea.ref, 'refs/tags/')
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
TAG="${{ gitea.ref_name }}"
curl -s -X POST \
"https://gitea.vectry.tech/api/v1/repos/Vectry/agentlens/releases" \
-H "Authorization: token ${RELEASE_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${TAG}\", \"name\": \"${TAG}\", \"body\": \"Automated release for ${TAG}\", \"draft\": false, \"prerelease\": false}" \
|| echo "Release may already exist — skipping"
- name: Cleanup
if: always()
run: docker image prune -f

View File

@@ -27,6 +27,8 @@ jobs:
- name: Build and publish to PyPI
run: |
cd packages/sdk-python
python3 -m venv .venv
. .venv/bin/activate
pip install build twine
python -m build
twine upload dist/*