leiroc issue

This commit is contained in:
Ciro Santilli
2021-06-07 11:22:15 +01:00
parent 953302f143
commit 06e4e2396f
2 changed files with 6 additions and 5 deletions

7
push
View File

@@ -23,10 +23,11 @@ if git -C "$gh_pages_dir" commit -m "$(git log -1 --format="%H")"; then
fi
# GitLab pages
gl_pages_dir=out/gl-pages
out_dir=out/
gl_pages_dir="${out_dir}/gl-pages"
if [ ! -d "$gl_pages_dir" ]; then
mkdir -p "${gl_pages_dir}/public"
git clone --branch gl-pages --depth 1 git@gitlab.com:cirosantilli/china-dictatorship.git remote get-url origin "$gl_pages_dir"
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"
cp .gitlab-ci.yml "${gl_pages_dir}"