summaryrefslogtreecommitdiff
path: root/_tools/envs_post-receive
diff options
context:
space:
mode:
authormayx2025-08-31 16:24:46 +0000
committermayx2025-08-31 16:24:46 +0000
commit3dd82ed54c4a9b47469fb567e863f8358b3ab1ba (patch)
tree40ad035cc8b7a68f6fa4b22dedf2e9f4541df11a /_tools/envs_post-receive
parent0ab62cb2b3abbf51752c3e5cfc69bf0265be61f2 (diff)
Update 6 files
- /_data/links.csv - /_data/proxylist.yml - /_tools/envs_post-receive - /_tools/serv00_post-receive - /_tools/ai-summary.js - /_posts/2025-09-01-quine.md
Diffstat (limited to '_tools/envs_post-receive')
-rw-r--r--_tools/envs_post-receive21
1 files changed, 21 insertions, 0 deletions
diff --git a/_tools/envs_post-receive b/_tools/envs_post-receive
new file mode 100644
index 0000000..c9465eb
--- /dev/null
+++ b/_tools/envs_post-receive
@@ -0,0 +1,21 @@
+#!/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
+bundle2.7 exec jekyll build -d ../public_html
+tar czvf MayxBlog.tgz --exclude-vcs ../public_html/
+mv MayxBlog.tgz ../public_html/
+cd ../public_html/
+unset GIT_DIR
+git init
+git branch -m main
+git add .
+git commit -m "update"
+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
+git push -f bitbucket main
+/home/mayx/blog-env/node_modules/surge/bin/surge /home/mayx/public_html/ mayx.surge.sh \ No newline at end of file