Compare commits
1 Commits
32ed6e3f1d
...
v0.2.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c83b945ab |
@@ -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
|
||||
|
||||
@@ -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/*
|
||||
|
||||
Reference in New Issue
Block a user