Skip to content

Commit

Permalink
build: setup snapshot builds for experimental and new packages (angul…
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion authored Mar 10, 2020
1 parent 47af01f commit 59ae34b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions scripts/deploy/publish-build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@ if [ -z ${MATERIAL2_BUILDS_TOKEN} ]; then
exit 1
fi

# Material packages that need to published.
PACKAGES=(cdk material material-moment-adapter)
REPOSITORIES=(cdk-builds material2-builds material2-moment-adapter-builds)
# Release packages that need to published as snapshots.
PACKAGES=(
cdk
cdk-experimental
material
material-experimental
material-moment-adapter
google-maps
youtube-player
)

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

for ((i = 0; i < ${#PACKAGES[@]}; i++)); do
packageName=${PACKAGES[${i}]}
packageRepo=${REPOSITORIES[${i}]}

# Publish artifacts of the current package. Run publishing in a sub-shell to avoid working
# directory changes.
(publishPackage ${packageName} ${packageRepo})
for packageName in "${PACKAGES[@]}"; do
# Publish artifacts of the current package. Run publishing in a sub-shell to avoid
# working directory changes.
(publishPackage ${packageName} "${packageName}-builds")
done

0 comments on commit 59ae34b

Please sign in to comment.