Skip to content

Instantly share code, notes, and snippets.

@abzeede
Last active July 11, 2017 18:05
Show Gist options
  • Select an option

  • Save abzeede/8c1c792016dc559aa99c1755c0fba3c7 to your computer and use it in GitHub Desktop.

Select an option

Save abzeede/8c1c792016dc559aa99c1755c0fba3c7 to your computer and use it in GitHub Desktop.
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