fix: 修正CD错误 #25

Merged
7iwind merged 1 commits from feature/route into develop 2026-07-26 23:45:38 +08:00
Showing only changes of commit 052df2fc21 - Show all commits
+3 -1
View File
@@ -62,7 +62,9 @@ jobs:
echo "Created local tag: $VERSION"
# 推送到远端(不会触发本 workflow — 仅匹配 branches: [main])
git push "https://${TOKEN}@${{ gitea.server_url }}/${{ gitea.repository }}" "$VERSION"
ORIGIN=$(git config --get remote.origin.url)
PUSH_URL="https://oauth2:${TOKEN}@${ORIGIN#https://}"
git push "$PUSH_URL" "$VERSION"
echo "Pushed tag: $VERSION"
echo "tag=$VERSION" >> "$GITHUB_OUTPUT"