Blame view

bower_components/polymer-element-catalog/scripts/travis_deploy 441 Bytes
07d13c9c   isisadmin   polymer catalog
1
2
3
4
5
6
7
8
9
10
11
12
13
  #!/usr/bin/env bash
  
  if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]] && [[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
    echo "Deploying release $TRAVIS_TAG to production Firebase..."
    ./node_modules/.bin/firebase deploy
    exit
  fi
  
  if [[ "${TRAVIS_PULL_REQUEST}" == "false" ]] && [[ "${TRAVIS_BRANCH}" == "master" ]]; then
    echo "Deploying to staging Firebase..."
    ./node_modules/.bin/firebase deploy -f p-catalog-staging
    exit
  fi