2 Commits
Author SHA1 Message Date
7iwind 5aba22d8e9 Merge pull request 'fix: 修正CD错误' (#25) from feature/route into develop
CI / host (push) Successful in 5s
CI / cortex-m (push) Successful in 10s
CI / host (pull_request) Successful in 7s
CI / cortex-m (pull_request) Successful in 9s
Reviewed-on: #25
2026-07-26 23:45:37 +08:00
7iwind 052df2fc21 fix: 修正CD错误 2026-07-26 23:45:10 +08:00
+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"