forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy_site.sh
More file actions
executable file
·49 lines (40 loc) · 1.34 KB
/
deploy_site.sh
File metadata and controls
executable file
·49 lines (40 loc) · 1.34 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# Builds Polymer's API documentation and upload's the site to app engine.
#
# Note: This script should be used in place of using appcfg.py update directly
# to update the application on App Engine.
#
# Copyright 2013 Eric Bidelman <@ebidel>
# for arg in $@
# do
# if [ $arg = "--release" ] ; then
# versionStr=v`date +%Y%m%d`
# git checkout -b $versionStr
# if [ $? -ne 0 ] ; then
# git checkout $versionStr
# git merge master
# git commit -m "merging with master"
# else
# # Change app.yaml version to current date timestamp.
# fl=../app.yaml
# mv $fl $fl.old
# sed "s/version: master/version: $versionStr/g" $fl.old > $fl
# rm -f $fl.old
# # Commit the new release branch.
# git commit -m "Cutting release $versionStr" ../app.yaml
# fi
# git push origin $versionStr
# fi
# done
# Vulcanize common elements for the site
#node polymer-all/labs/vulcanize/bin/vulcanize -i _includes/common_elements.html -o elements/common_elements.vulcanized.html
#vulcanize --config vulcanize_config.json _includes/common_elements.html -o elements/common_elements.vulcanized.html
# Compile .sass files.
compass compile
# Run jekyll and build api docs.
#grunt docs # grunt docs doesn't work on jekyll 2.0
grunt vulcanize
grunt jekyll:build
# Deploy site to App Engine.
appcfg.py update --oauth2 .