diff --git a/deploy.sh b/deploy.sh index 651598f..7e29933 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file