2025-08-31 16:24:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
cd /home/mayx/
|
|
|
|
|
rm -rf public_html
|
|
|
|
|
git --work-tree=/home/mayx/blog --git-dir=/home/mayx/blog.git checkout -f
|
|
|
|
|
cd blog
|
|
|
|
|
mkdir Mabbs
|
|
|
|
|
curl -L -o Mabbs/README.md https://github.com/Mabbs/Mabbs/raw/main/README.md
|
2026-02-08 12:35:47 +00:00
|
|
|
bundle exec jekyll build -d ../public_html
|
2026-09-11 10:30:53 +00:00
|
|
|
python3 _tools/blogquine.py --src-dir blog --quine-dir blog ../public_html/ MayxBlog.7z
|
|
|
|
|
mv MayxBlog.7z ../public_html/
|
2025-08-31 16:24:46 +00:00
|
|
|
cd ../public_html/
|
|
|
|
|
unset GIT_DIR
|
|
|
|
|
git init
|
|
|
|
|
git branch -m main
|
|
|
|
|
git add .
|
|
|
|
|
git commit -m "update"
|
2026-05-19 03:31:46 +00:00
|
|
|
git branch pages
|
2025-08-31 16:24:46 +00:00
|
|
|
git remote add codeberg ssh://git@codeberg.org/mayx/pages.git
|
|
|
|
|
git remote add bitbucket ssh://git@bitbucket.org/unmayx/unmayx.bitbucket.io.git
|
|
|
|
|
git push -f codeberg main
|
2026-05-19 03:31:46 +00:00
|
|
|
git push -f codeberg pages
|
2025-08-31 16:24:46 +00:00
|
|
|
git push -f bitbucket main
|
|
|
|
|
/home/mayx/blog-env/node_modules/surge/bin/surge /home/mayx/public_html/ mayx.surge.sh
|