Created
December 10, 2016 10:43
-
-
Save motss/b6ecb0a80c497e81e420a7c0d67b321a to your computer and use it in GitHub Desktop.
deploy-to-firebase Bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
clear | |
echo -e "#1 - Removing build/ directory for a fresh build of the project..." | |
if [ -d "build/" ]; then | |
rm -rf build/ | |
fi | |
echo -e "\n#2 = Building project..." | |
polymer build | |
echo -e "\n#3 - Deploying to Firebase Hosting..." | |
firebase deploy | |
echo -e "\nDone. The project deployed successfully." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment