Skip to content

Instantly share code, notes, and snippets.

@motss
Created December 10, 2016 10:43
Show Gist options
  • Save motss/b6ecb0a80c497e81e420a7c0d67b321a to your computer and use it in GitHub Desktop.
Save motss/b6ecb0a80c497e81e420a7c0d67b321a to your computer and use it in GitHub Desktop.
deploy-to-firebase Bash script
#! /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