we need pull as fetch doesn't update the branch

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1690132257852795115/master
Toshaan Bharvani 2 years ago
parent 1640279bd5
commit 23a4bf8a1b

@ -21,7 +21,7 @@ build-staging:
@for branch in $(BRANCHNAMES) ; do \ @for branch in $(BRANCHNAMES) ; do \
echo -e "Building branch \e[1;33m"$${branch}"\e[0m" ; \ echo -e "Building branch \e[1;33m"$${branch}"\e[0m" ; \
git checkout $${branch} ; \ git checkout $${branch} ; \
git fetch ; \ git pull ; \
$(HUGO) --environment=production --minify --templateMetrics --baseURL https://$(BASEURL)/$${branch}/ --destination builds/$${branch} ; \ $(HUGO) --environment=production --minify --templateMetrics --baseURL https://$(BASEURL)/$${branch}/ --destination builds/$${branch} ; \
done done
@git checkout master @git checkout master

Loading…
Cancel
Save