Mayx's Home Page https://mabbs.github.io
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

25 lines
860B

  1. #!/bin/bash
  2. cd /home/mayx/
  3. rm -rf public_html
  4. git --work-tree=/home/mayx/blog --git-dir=/home/mayx/blog.git checkout -f
  5. cd blog
  6. mkdir Mabbs
  7. curl -L -o Mabbs/README.md https://github.com/Mabbs/Mabbs/raw/main/README.md
  8. bundle exec jekyll build -d ../public_html
  9. ssh pgs.sh rm blog --write
  10. rsync --delete --exclude='.git' -rv ../public_html/ mayx@pgs.sh:/blog
  11. tar czvf MayxBlog.tgz --exclude-vcs ../public_html/
  12. mv MayxBlog.tgz ../public_html/
  13. cd ../public_html/
  14. unset GIT_DIR
  15. git init
  16. git branch -m main
  17. git add .
  18. git commit -m "update"
  19. git branch pages
  20. git remote add codeberg ssh://git@codeberg.org/mayx/pages.git
  21. git remote add bitbucket ssh://git@bitbucket.org/unmayx/unmayx.bitbucket.io.git
  22. git push -f codeberg main
  23. git push -f codeberg pages
  24. git push -f bitbucket main
  25. /home/mayx/blog-env/node_modules/surge/bin/surge /home/mayx/public_html/ mayx.surge.sh
上海开阖软件有限公司 沪ICP备12045867号-1