ProzillaOS/deploy.sh
2024-06-05 21:46:48 +02:00

20 lines
No EOL
647 B
Bash

#!/bin/bash
# Edit these variables before deploying
DOMAIN=os.prozilla.dev
COMMIT_MESSAGE="Deployed build to GitHub Pages"
REPO_URL="https://github.com/Prozilla/ProzillaOS"
# ------- You don't need to edit anything below this line -------
echo -e "Domain: \e[0;36m$DOMAIN\e[0m"
echo -e "Commit message: \e[0;36m$COMMIT_MESSAGE\e[0m"
echo -e "Repository: \e[0;36m$REPO_URL\e[0m\n"
echo $DOMAIN > dist/CNAME
echo -e "\e[0;33mDeploying to GitHub Pages...\e[0m"
if gh-pages -d dist -m $COMMIT_MESSAGE -r $REPO_URL ; then
echo -e "\e[0;32m✓ Successfully deployed to \e[0;36mhttps://$DOMAIN/\e[0m"
else
echo -e "\e[0;31mFailed to deploy\e[0m"
fi