summaryrefslogtreecommitdiff
path: root/_tools
diff options
context:
space:
mode:
Diffstat (limited to '_tools')
-rw-r--r--_tools/envs_post-receive3
1 files changed, 3 insertions, 0 deletions
diff --git a/_tools/envs_post-receive b/_tools/envs_post-receive
index 6212158..07c8183 100644
--- a/_tools/envs_post-receive
+++ b/_tools/envs_post-receive
@@ -6,6 +6,7 @@ cd blog
mkdir Mabbs
curl -L -o Mabbs/README.md https://github.com/Mabbs/Mabbs/raw/main/README.md
bundle exec jekyll build -d ../public_html
+rsync --delete -rv ../public_html/ mayx@pgs.sh:/blog
tar czvf MayxBlog.tgz --exclude-vcs ../public_html/
mv MayxBlog.tgz ../public_html/
cd ../public_html/
@@ -14,8 +15,10 @@ git init
git branch -m main
git add .
git commit -m "update"
+git branch pages
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 codeberg pages
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