fix(ci): replace zip with tar for dashboard-ui packaging
Beta Release / deploy (push) Failing after 0s
Beta Release / deploy (push) Failing after 0s
This commit is contained in:
@@ -94,7 +94,7 @@ jobs:
|
|||||||
"device-agent-linux-amd64": "${SERVER}/${REPO}/releases/download/${VERSION}/nexus-device-agent-linux-amd64",
|
"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-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",
|
"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
|
ENDJSON
|
||||||
@@ -187,16 +187,16 @@ jobs:
|
|||||||
|
|
||||||
# Dashboard UI dist
|
# Dashboard UI dist
|
||||||
if [ -d "apps/dashboard-ui/dist" ]; then
|
if [ -d "apps/dashboard-ui/dist" ]; then
|
||||||
echo "Creating dashboard-ui-dist.zip..."
|
echo "Creating dashboard-ui-dist.tar.gz..."
|
||||||
cd apps/dashboard-ui
|
cd apps/dashboard-ui
|
||||||
zip -r ../dashboard-ui-dist.zip dist/
|
tar -czf ../dashboard-ui-dist.tar.gz dist/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Uploading dashboard-ui-dist.zip..."
|
echo "Uploading dashboard-ui-dist.tar.gz..."
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $TOKEN" \
|
||||||
-F "attachment=@dashboard-ui-dist.zip" \
|
-F "attachment=@dashboard-ui-dist.tar.gz" \
|
||||||
"$API/repos/$REPO/releases/$RELEASE_ID/assets?name=dashboard-ui-dist.zip"
|
"$API/repos/$REPO/releases/$RELEASE_ID/assets?name=dashboard-ui-dist.tar.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# latest.json
|
# latest.json
|
||||||
@@ -213,6 +213,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global --remove-section http || true
|
git config --global --remove-section http || true
|
||||||
git config --global --unset-all core.askPass || 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
|
rm -rf apps/server-core/bin apps/device-agent/bin apps/dashboard-ui/node_modules apps/dashboard-ui/dist
|
||||||
echo "Cleanup done"
|
echo "Cleanup done"
|
||||||
Reference in New Issue
Block a user