mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: faster artifacts deploy script (#5149)
This commit is contained in:
@@ -42,8 +42,8 @@ publishPackage() {
|
||||
rm -rf ${repoDir}
|
||||
mkdir -p ${repoDir}
|
||||
|
||||
# Clone the repository
|
||||
git clone ${repoUrl} ${repoDir}
|
||||
# Clone the repository and only fetch the last commit to download less unused data.
|
||||
git clone ${repoUrl} ${repoDir} --depth 1
|
||||
|
||||
# Copy the build files to the repository
|
||||
rm -rf ${repoDir}/*
|
||||
|
||||
@@ -25,7 +25,7 @@ commitMessage="$(git log --oneline -n 1)"
|
||||
# create directory and clone test repo
|
||||
rm -rf $repoPath
|
||||
mkdir -p $repoPath
|
||||
git clone $repoUrl $repoPath
|
||||
git clone $repoUrl $repoPath --depth 1
|
||||
|
||||
# Clean out repo directory and copy contents of dist/docs into it
|
||||
rm -rf $repoPath/*
|
||||
|
||||
Reference in New Issue
Block a user