Optimize release upload and ensure bump script syncs global skill directory
This commit is contained in:
1 parent
d5eae55a40
commit
191e67957d
7 files changed
+150
-30
No files matched your search
@@ -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!"
|
||||
Reference in new issue
Block a user