You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"Note that the metadata server SSH destination is part of the rsync command executed on the build server and will be checked against the SSH config of build@\$buildserver_host."
14
+
echo" <product version>"
20
15
exit 1
21
16
fi
22
17
@@ -31,80 +26,12 @@ if ! gh auth status > /dev/null; then
echo"Note that the metadata server SSH destination is part of the rsync command executed on the build server and will be checked against the SSH config of build@\$buildserver_host."
19
+
exit 1
20
+
fi
21
+
22
+
# Duplicated from /scripts/utils/gh-ready-check
23
+
if!command -v gh > /dev/null;then
24
+
echo"gh (GitHub CLI) is required to run this script"
25
+
exit 1
26
+
fi
27
+
if! gh auth status > /dev/null;then
28
+
echo"Authentication through gh (GitHub CLI) is required to run this script"
29
+
exit 1
30
+
fi
31
+
32
+
PRODUCT_VERSION=$1
33
+
BUILDSERVER_HOST=$2
34
+
METADATA_SERVER_HOST=$3
35
+
36
+
ARTIFACT_DIR="./artifacts"
37
+
38
+
functionpublish_metadata {
39
+
local platforms
40
+
platforms=(windows macos linux)
41
+
local signed_dir="signed/"
42
+
43
+
rm -rf currently_published/
44
+
45
+
echo">>> Fetching current version metadata"
46
+
meta pull --assume-yes "${platforms[@]}"
47
+
echo""
48
+
49
+
echo">>> Backing up released data"
50
+
cp -r $signed_dir currently_published/
51
+
echo""
52
+
53
+
echo">>> Replacing work/ directory with latest published data"
54
+
cp -rf signed/ work/
55
+
echo""
56
+
57
+
echo">>> Adding new release $PRODUCT_VERSION (rollout = 1)"
58
+
meta add-release "$PRODUCT_VERSION""${platforms[@]}" 1
59
+
echo""
60
+
61
+
echo">>> Signing $PRODUCT_VERSION metadata"
62
+
meta sign "${platforms[@]}"
63
+
echo""
64
+
65
+
echo">>> Verifying signed metadata"
66
+
meta verify "${platforms[@]}"
67
+
echo""
68
+
69
+
echo">>> New metadata including $$PRODUCT_VERSION"
0 commit comments