Last active
July 11, 2017 18:05
-
-
Save abzeede/8c1c792016dc559aa99c1755c0fba3c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| cache: | |
| directories: | |
| - node_modules # cache node_module | |
| language: node_js # set language to node_js | |
| node_js: | |
| 7 # use node version 7 | |
| branches: | |
| only: | |
| - master # auto build and deploy in only master branch | |
| script: # run after installed | |
| - npm install # install node module | |
| - npm run build # build project | |
| install: | |
| npm install -g firebase-tools # install firebase-cli | |
| after_success: | |
| - firebase use --token ${FIREBASE_TOKEN} # set firebase token | |
| - firebase use --add ${PROJECT_ID} # set current project | |
| - firebase deploy --non-interactive --token "${FIREBASE_TOKEN}" # deploy project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment