Mayx's Home Page https://mabbs.github.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
722 B

  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. bundle2.7 exec jekyll build -d ../public_html
  9. tar czvf MayxBlog.tgz --exclude-vcs ../public_html/
  10. mv MayxBlog.tgz ../public_html/
  11. cd ../public_html/
  12. unset GIT_DIR
  13. git init
  14. git branch -m main
  15. git add .
  16. git commit -m "update"
  17. git remote add codeberg ssh://git@codeberg.org/mayx/pages.git
  18. git remote add bitbucket ssh://git@bitbucket.org/unmayx/unmayx.bitbucket.io.git
  19. git push -f codeberg main
  20. git push -f bitbucket main
  21. /home/mayx/blog-env/node_modules/surge/bin/surge /home/mayx/public_html/ mayx.surge.sh

Powered by TurnKey Linux.