Updated deploy script

This commit is contained in:
Prozilla 2023-08-08 18:41:09 +02:00
parent a99a76954d
commit 613de8d2b4
No known key found for this signature in database
GPG key ID: 5858DFE71CAF31EE

View file

@ -1,13 +1,20 @@
#!/bin/bash
# Edit these variables before deploying
DOMAIN=os.prozilla.dev
COMMIT_MESSAGE="Deployed build to GitHub Pages"
REPO_URL="https://github.com/Prozilla/Prozilla-OS"
# You don't have to edit anything below this line
echo Domain: $DOMAIN
echo Commit message: $COMMIT_MESSAGE
echo -e "Repository: $REPO_URL\n"
echo $DOMAIN > build/CNAME
echo Deploying to GitHub Pages...
gh-pages -d build -m $COMMIT_MESSAGE -r $REPO_URL
if gh-pages --silent -d build -m $COMMIT_MESSAGE -r $REPO_URL ; then
echo Successfully deployed to https://$DOMAIN/
else
echo Failed to deploy
fi