attempt split header version
This commit is contained in:
7
push
7
push
@@ -31,14 +31,15 @@ fi
|
||||
|
||||
# GitLab pages
|
||||
gl_pages_dir="${out_dir}/gl-pages"
|
||||
gl_pages_public_dir="${gl_pages_dir}/public"
|
||||
if [ ! -d "$gl_pages_dir" ]; then
|
||||
mkdir -p "${out_dir}"
|
||||
git clone --branch gl-pages --depth 1 git@gitlab.com:cirosantilli/china-dictatorship.git "$gl_pages_dir"
|
||||
fi
|
||||
make MEDIA=https://gitlab.com/cirosantilli/china-dictatorship-media/-/raw/master OUT="${gl_pages_dir}/public/index.html"
|
||||
make MEDIA=https://gitlab.com/cirosantilli/china-dictatorship-media/-/raw/master OUT="${gl_pages_public_dir}/index.html"
|
||||
cp .gitlab-ci.yml "${gl_pages_dir}"
|
||||
cp "${out_multipage_dir}/"* "$gh_pages_dir"
|
||||
mv "${gh_pages_dir}/README.html" "${gh_pages_dir}/index-split.html"
|
||||
cp "${out_multipage_dir}/"* "$gl_pages_public_dir"
|
||||
mv "${gl_pages_public_dir}/README.html" "${gh_pages_dir}/index-split.html"
|
||||
git -C "$gl_pages_dir" add .
|
||||
if git -C "$gl_pages_dir" commit -m "$(git log -1 --format="%H")"; then
|
||||
git -C "$gl_pages_dir" push
|
||||
|
||||
Reference in New Issue
Block a user