diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..fee318a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +image: alpine:latest + +pages: + stage: deploy + script: + - echo 'Nothing to do...' + artifacts: + paths: + - . + expire_in: 1 day + only: + - gh-pages diff --git a/README.adoc b/README.adoc index bc8d2c7..2648758 100644 --- a/README.adoc +++ b/README.adoc @@ -10,11 +10,16 @@ :toclevels: 6 :toc-title: -https://cirosantilli.com/china-dictatorship[GitHub Pages] | https://github.com/cirosantilli/china-dictatorship[GitHub project] | https://github.com/cirosantilli/china-dictatorship/archive/gh-pages.zip[HTML download] +https://cirosantilli.com/china-dictatorship[cirosantilli.com] | https://github.com/cirosantilli/china-dictatorship[GitHub project] | https://gitlab.com/cirosantilli/china-dictatorship/-/blob/master/README.adoc[gitlab.com] | https://github.com/cirosantilli/china-dictatorship/archive/gh-pages.zip[GitHub HTML download] Chinese "Communist" <> "facts". 中国《共产主义》<>的《事实》。<>, <> and <> and <> recommendations. <>,<>和<>和<>建议。<>. <>。 -This README is too large and so https://github.com/isaacs/github/issues/1610[GitHub cuts it up] on https://github.com/cirosantilli/china-dictatorship[github.com]. You can view it fully at https://cirosantilli.com/china-dictatorship[] or by downloading it locally as shown at: <>. +This README is too large and so https://github.com/isaacs/github/issues/1610[GitHub cuts it up] on https://github.com/cirosantilli/china-dictatorship[github.com]. You can view it fully at either: + +* https://cirosantilli.com/china-dictatorship (canonical, https://zh.greatfire.org/https/cirosantilli.com[blocked in China since 2020] according to <>) +* https://gitlab.com/cirosantilli/china-dictatorship/-/blob/master/README.adoc[GitLab], which renders the full README + +or by downloading it locally as shown at: <>. **住在中国大陆有真名用户或者用中国邮箱的网友请别给星星,不然你要被请喝茶了。先注册一个Gmail/Protonmail匿名用户才来。 Friends who live in China and have real name on account or who use a Chinese email provider, please don't star this repo, or else the police might pay you a visit some day. First create an anonymous account with Gmail/Protonmail instead.** See also: <>. @@ -190,7 +195,7 @@ Given <>, this might be the only way to view the ima The cool thing about Git is that we can maintain several mirrors on multiple websites very easily: * https://github.com/cirosantilli/china-dictatorship Canonical source and rendered output. If ever <> we do this: <> -* https://gitlab.com/cirosantilli/china-dictatorship Maybe some day https://gitlab.cn/ ? :-) +* https://gitlab.com/cirosantilli/china-dictatorship Maybe some day https://gitlab.cn/ ? :-) Their render is shit for some reason, clicking on the ToC does not jump to headers properly, not sure why, IDs look correct * https://gitee.com/cirosantilli/china-dictatorship on <>, blocked after 12 hours: <> * https://bitbucket.org/cirosantilli/china-dictatorship * https://git.kiwifarms.net/CrunkLord420/china-dictatorship auto-pull Gitea mirror on https://en.wikipedia.org/wiki/Kiwi_Farms[Kiwi Farms] (a <> social network website) diff --git a/push-gh-pages b/push-gh-pages index d97a376..81bba13 100755 --- a/push-gh-pages +++ b/push-gh-pages @@ -16,7 +16,9 @@ if [ ! -d "$gh_pages_dir" ]; then git clone --branch gh-pages "$(git remote get-url origin)" fi cp README.html "${gh_pages_dir}/index.html" -git -C "$gh_pages_dir" add index.html +cp .gitlab-ci.yml "${gh_pages_dir}" +git -C "$gh_pages_dir" add . if git -C "$gh_pages_dir" commit -m "$(git log -1 --format="%H")"; then git -C "$gh_pages_dir" push + git push git@gitlab.com:cirosantilli/china-dictatorship.git fi diff --git a/push-mirrors b/push-mirrors index 1e2de81..eddeb29 100755 --- a/push-mirrors +++ b/push-mirrors @@ -1,5 +1,6 @@ #!/usr/bin/env bash +# Create a tag and push to EVERY supported mirror. # https://github.com/cirosantilli/china-dictatorship#mirrors set -eux @@ -31,8 +32,9 @@ python setup.py sdist bdist_wheel twine upload dist/* rm -rf build dist *.egg-info -# Push to git mirrors. +# Push to other git mirrors. git push git@gitlab.com:cirosantilli/china-dictatorship.git git push git@bitbucket.org:cirosantilli/china-dictatorship.git +git push git@gitlab.binets.fr:ciro.duran-santilli/china-dictatorship.git # Nah. #git push https://gitee.com/cirosantilli/china-dictatorship.git