feat: auto-create Gitea releases on tag push and fix PyPI publish venv
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user