Skip to content
Snippets Groups Projects
Commit 614afc0d authored by Ciro Santilli's avatar Ciro Santilli
Browse files

attempt split header version

parent 10005e28
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
 
https://cirosantilli.com/china-dictatorship[cirosantilli.com (canonical 规范链接)] |
https://github.com/cirosantilli/china-dictatorship[GitHub project] |
link:split-header[split header version] |
中国镜像 China mirrors:
https://cirosantilli.gitlab.io/china-dictatorship[cirosantilli.gitlab.io],
https://htmlpreview.github.io/?https://github.com/cirosantilli/china-dictatorship/gh-pages/blob/index.html[htmlpreview.github.io],
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment