Optimize release upload and ensure bump script syncs global skill directory
🧪 CI / 🧪 Test & Type-Check (push) Has been cancelled
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled

This commit is contained in:
gitea committed 2026-08-26 16:27:39 +08:00
1 parent d5eae55a40
commit 191e67957d
7 files changed
+150 -30

No files matched your search

+18 -4
View File
@@ -91,12 +91,26 @@ jobs:
fi
echo "==> Uploading assets to Gitea release ID ${RELEASE_ID}..."
for file in dist/bin/seal-home-*; do
upload_asset() {
local file="$1"
local filename
filename=$(basename "$file")
echo " Uploading ${filename} to Gitea..."
RESP=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X POST "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}/assets?name=${filename}" \
echo " [start] Uploading ${filename} to Gitea..."
RESP=$(curl -s -m 120 -w "\nHTTP_STATUS:%{http_code}" -X POST "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}/assets?name=${filename}" \
-H "Authorization: token ${GITEA_TOKEN}" \
-F "attachment=@${file}")
echo " Upload response: $(echo "$RESP" | tail -n 1)"
STATUS=$(echo "$RESP" | tail -n 1)
echo " [done] ${filename} -> ${STATUS}"
}
pids=()
for file in dist/bin/seal-home-*; do
upload_asset "$file" &
pids+=($!)
done
# Wait for all parallel uploads to complete
for pid in "${pids[@]}"; do
wait "$pid" || true
done
echo "✓ Successfully published release assets to Gitea!"