Skip to content

Commit 59ae34b

Browse files
authored
build: setup snapshot builds for experimental and new packages (#18736)
1 parent 47af01f commit 59ae34b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

scripts/deploy/publish-build-artifacts.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@ if [ -z ${MATERIAL2_BUILDS_TOKEN} ]; then
1515
exit 1
1616
fi
1717

18-
# Material packages that need to published.
19-
PACKAGES=(cdk material material-moment-adapter)
20-
REPOSITORIES=(cdk-builds material2-builds material2-moment-adapter-builds)
18+
# Release packages that need to published as snapshots.
19+
PACKAGES=(
20+
cdk
21+
cdk-experimental
22+
material
23+
material-experimental
24+
material-moment-adapter
25+
google-maps
26+
youtube-player
27+
)
2128

2229
# Command line arguments.
2330
COMMAND_ARGS=${*}
@@ -117,11 +124,8 @@ publishPackage() {
117124
echo "Published package artifacts for ${packageName}#${buildVersionName} into ${branchName}"
118125
}
119126

120-
for ((i = 0; i < ${#PACKAGES[@]}; i++)); do
121-
packageName=${PACKAGES[${i}]}
122-
packageRepo=${REPOSITORIES[${i}]}
123-
124-
# Publish artifacts of the current package. Run publishing in a sub-shell to avoid working
125-
# directory changes.
126-
(publishPackage ${packageName} ${packageRepo})
127+
for packageName in "${PACKAGES[@]}"; do
128+
# Publish artifacts of the current package. Run publishing in a sub-shell to avoid
129+
# working directory changes.
130+
(publishPackage ${packageName} "${packageName}-builds")
127131
done

0 commit comments

Comments
 (0)