Skip to content

Commit 53cf714

Browse files
vicbmprobst
authored andcommitted
build(publish): shallow fetch to improve perfs (depth=1)
1 parent 04d02b5 commit 53cf714

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/publish/publish-build-artifacts.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function publishRepo {
1818
cd $REPO_DIR && \
1919
git init && \
2020
git remote add origin $REPO_URL && \
21-
git fetch origin master && \
21+
git fetch origin master --depth=1 && \
2222
git checkout origin/master && \
2323
git checkout -b master
2424
)
@@ -49,9 +49,8 @@ function publishRepo {
4949
git config user.email "${COMMITTER_USER_EMAIL}" && \
5050
git add --all && \
5151
git commit -m "${COMMIT_MSG}" && \
52-
git push origin master && \
5352
git tag "${BUILD_VER}" && \
54-
git push origin --tags --force
53+
git push origin master --tags --force
5554
)
5655
}
5756

0 commit comments

Comments
 (0)