fix(ci): replace zip with tar for dashboard-ui packaging
Beta Release / deploy (push) Failing after 0s

This commit is contained in:
datadunia
2026-05-30 16:41:00 +07:00
parent f8d3c1ca18
commit 7793215e96
+7 -7
View File
@@ -94,7 +94,7 @@ jobs:
"device-agent-linux-amd64": "${SERVER}/${REPO}/releases/download/${VERSION}/nexus-device-agent-linux-amd64",
"device-agent-linux-arm64": "${SERVER}/${REPO}/releases/download/${VERSION}/nexus-device-agent-linux-arm64",
"device-agent-windows-amd64": "${SERVER}/${REPO}/releases/download/${VERSION}/nexus-device-agent-windows-amd64.exe",
"dashboard-ui": "${SERVER}/${REPO}/releases/download/${VERSION}/dashboard-ui-dist.zip"
"dashboard-ui": "${SERVER}/${REPO}/releases/download/${VERSION}/dashboard-ui-dist.tar.gz"
}
}
ENDJSON
@@ -187,16 +187,16 @@ jobs:
# Dashboard UI dist
if [ -d "apps/dashboard-ui/dist" ]; then
echo "Creating dashboard-ui-dist.zip..."
echo "Creating dashboard-ui-dist.tar.gz..."
cd apps/dashboard-ui
zip -r ../dashboard-ui-dist.zip dist/
tar -czf ../dashboard-ui-dist.tar.gz dist/
cd ..
echo "Uploading dashboard-ui-dist.zip..."
echo "Uploading dashboard-ui-dist.tar.gz..."
curl -s -X POST \
-H "Authorization: token $TOKEN" \
-F "attachment=@dashboard-ui-dist.zip" \
"$API/repos/$REPO/releases/$RELEASE_ID/assets?name=dashboard-ui-dist.zip"
-F "attachment=@dashboard-ui-dist.tar.gz" \
"$API/repos/$REPO/releases/$RELEASE_ID/assets?name=dashboard-ui-dist.tar.gz"
fi
# latest.json
@@ -213,6 +213,6 @@ jobs:
run: |
git config --global --remove-section http || true
git config --global --unset-all core.askPass || true
rm -f latest.json dashboard-ui-dist.zip
rm -f latest.json dashboard-ui-dist.tar.gz
rm -rf apps/server-core/bin apps/device-agent/bin apps/dashboard-ui/node_modules apps/dashboard-ui/dist
echo "Cleanup done"