File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,23 @@ git checkout gh-pages
25
25
git pull origin gh-pages
26
26
27
27
site_src=" ${git_repo_root} /_site"
28
- http_serve_dir =" ${git_repo_root} /site "
28
+ gh_pages_root =" ${git_repo_root} /gh-pages-root "
29
29
30
30
if [ " $git_branch " == " $main_git_branch " ]; then
31
- site_dest=" ${http_serve_dir } "
31
+ site_dest=" ${gh_pages_root } "
32
32
33
33
# Create temporary backup for other branches content.
34
- mv " ${http_serve_dir } /branches" .
34
+ mv " ${gh_pages_root } /branches" .
35
35
36
36
# Replace site files.
37
37
rm -rf " ${site_dest} "
38
38
mkdir -p " ${site_dest} "
39
39
cp -a -v ${site_src} /* ${site_dest} /
40
40
41
41
# Restore temporary backup for other branches content.
42
- mv ./branches " ${http_serve_dir } /"
42
+ mv ./branches " ${gh_pages_root } /"
43
43
else
44
- site_dest=" ${http_serve_dir } /branches/${git_branch} "
44
+ site_dest=" ${gh_pages_root } /branches/${git_branch} "
45
45
46
46
# Replace site files.
47
47
rm -rf " ${site_dest} "
You can’t perform that action at this time.
0 commit comments