Updated deploy script
This commit is contained in:
parent
a99a76954d
commit
613de8d2b4
1 changed files with 8 additions and 1 deletions
|
|
@ -1,13 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Edit these variables before deploying
|
||||||
DOMAIN=os.prozilla.dev
|
DOMAIN=os.prozilla.dev
|
||||||
COMMIT_MESSAGE="Deployed build to GitHub Pages"
|
COMMIT_MESSAGE="Deployed build to GitHub Pages"
|
||||||
REPO_URL="https://github.com/Prozilla/Prozilla-OS"
|
REPO_URL="https://github.com/Prozilla/Prozilla-OS"
|
||||||
|
|
||||||
|
# You don't have to edit anything below this line
|
||||||
|
|
||||||
echo Domain: $DOMAIN
|
echo Domain: $DOMAIN
|
||||||
echo Commit message: $COMMIT_MESSAGE
|
echo Commit message: $COMMIT_MESSAGE
|
||||||
echo -e "Repository: $REPO_URL\n"
|
echo -e "Repository: $REPO_URL\n"
|
||||||
|
|
||||||
echo $DOMAIN > build/CNAME
|
echo $DOMAIN > build/CNAME
|
||||||
echo Deploying to GitHub Pages...
|
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
|
||||||
Loading…
Reference in a new issue