feat: publish versioned ZIP to Gitea package registry on CI

This commit is contained in:
Forge
2026-03-06 13:43:57 +08:00
parent e34f4aba4b
commit a47b82ab84
2 changed files with 26 additions and 0 deletions

View File

@@ -60,3 +60,12 @@ jobs:
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-F "attachment=@lexai-chrome-mv3-${VERSION}.zip"
echo "✅ Release ${VERSION} published!"
- name: Publish to Gitea Package Registry
run: |
VERSION=${{ gitea.ref_name }}
curl -s -X PUT "https://git.juankibin.space/api/packages/kibin/generic/lexai-extension/${VERSION}/lexai-chrome-mv3-${VERSION}.zip" \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-T lexai-chrome-mv3-${VERSION}.zip
echo "✅ Published lexai-chrome-mv3-${VERSION}.zip to package registry"
echo "📦 Download: https://git.juankibin.space/kibin/LexAI/packages"