add manual deploy script

pyrox.dev beb375b4 5130b5f9

verified
Changed files
+27
+27
deploy.sh
··· 1 + COMMIT_ID=$(git rev-parse --short HEAD) 2 + 3 + echo "Cleaning up /tmp/pages..." 4 + rm -rf /tmp/pages 5 + mkdir -p /tmp/pages 6 + chmod 777 /tmp/pages 7 + 8 + echo "Copying built site into /tmp/pages..." 9 + cp -rT ./_site /tmp/pages 10 + rm -rf /tmp/pages/.git 11 + 12 + echo "Initializing git repo..." 13 + cd /tmp/pages 14 + git init -b pages /tmp/pages 15 + git config user.name "[BOT] PyroNet Actions" 16 + git config user.email "actions-noreply@pyrox.dev" 17 + 18 + echo "Making commit..." 19 + git add --all 20 + git commit -m "Deploying $COMMIT_ID to PyroNet Git" 21 + 22 + echo "Pushing to PyroNet Git..." 23 + git remote add origin "https://git.pyrox.dev/pyrox/new-blog.git" 24 + git push --force origin "pages:pages" 25 + 26 + echo "Cleaning up tmpdir..." 27 + rm -rf /tmp/pages