forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·26 lines (20 loc) · 921 Bytes
/
deploy.sh
File metadata and controls
executable file
·26 lines (20 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
# This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
# The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
# The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
# Code distributed by Google as part of the polymer project is also
# subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
deployVersion=$1
if [ -z "$deployVersion" ]
then
echo "App version not specified."
echo "Usage: npm run deploy 2015-11-08"
exit 0
fi
readonly APPDIR=$(dirname $BASH_SOURCE)
echo "\nBuilding app version: $deployVersion\n"
gulp
echo "Deploying app version: $deployVersion"
gcloud preview app deploy $APPDIR/../dist/app.yaml \
--project polymer-project --version $deployVersion --no-promote