Skip to content

Commit 8ed0616

Browse files
committed
add docs deploy
1 parent 8e96ef3 commit 8ed0616

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.travis.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,26 @@ notifications:
4747
jobs:
4848
include:
4949
- stage: deploy
50-
script: grunt package && grunt compress:uploadBuild
50+
script: grunt package && grunt compress:uploadBuild && echo $TRAVIS_BRANCH && echo $TRAVIS_TAG
5151
before_script: skip
52-
after_script: echo "after script"
53-
# keep the process alive until the deploy is completed
54-
before_deploy: |
55-
function keep_alive() {
56-
while true; do
57-
echo -en "\a"
58-
sleep 5
59-
done
60-
}
61-
keep_alive &
62-
after_deploy: echo "after deploy"
6352
env:
6453
- JOB=deploy
6554
deploy:
66-
provider: gcs
67-
access_key_id: GOOGLDB7W2J3LFHICF3R
68-
secret_access_key:
69-
secure: tHIFdSq55qkyZf9zT/3+VkhUrTvOTMuswxXU3KyWaBrSieZqG0UnUDyNm+n3lSfX95zEl/+rJAWbfvhVSxZi13ndOtvRF+MdI1cvow2JynP0aDSiPffEvVrZOmihD6mt2SlMfhskr5FTduQ69kZG6DfLcve1PPDaIwnbOv3phb8=
70-
bucket: ng-i-1121e.appspot.com
71-
local-dir: upload
72-
skip_cleanup: true
73-
detect_encoding: true # detects gzip compression and sets the correct metadata in gcs
74-
on:
75-
repo: angular/angular.js
76-
condition: "$TRAVIS_TAG != false || ($TRAVIS_PR = false && $TRAVIS_BRANCH = 'master') || $TRAVIS_BRANCH = 'chore-firebase'"
55+
- provider: gcs
56+
access_key_id: GOOGLDB7W2J3LFHICF3R
57+
secret_access_key:
58+
secure: tHIFdSq55qkyZf9zT/3+VkhUrTvOTMuswxXU3KyWaBrSieZqG0UnUDyNm+n3lSfX95zEl/+rJAWbfvhVSxZi13ndOtvRF+MdI1cvow2JynP0aDSiPffEvVrZOmihD6mt2SlMfhskr5FTduQ69kZG6DfLcve1PPDaIwnbOv3phb8=
59+
bucket: ng-i-1121e.appspot.com
60+
local-dir: upload
61+
skip_cleanup: true
62+
detect_encoding: true # detects gzip compression and sets the correct metadata in gcs
63+
on:
64+
repo: angular/angular.js
65+
- provider: firebase
66+
skip_cleanup: true
67+
project: google.com:angular-sites
68+
token:
69+
secure: tHIFdSq55qkyZf9zT/3+VkhUrTvOTMuswxXU3KyWaBrSieZqG0UnUDyNm+n3lSfX95zEl/+rJAWbfvhVSxZi13ndOtvRF+MdI1cvow2JynP0aDSiPffEvVrZOmihD6mt2SlMfhskr5FTduQ69kZG6DfLcve1PPDaIwnbOv3phb8=
70+
on:
71+
repo: angular/angular.js
7772

firebase.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hosting": {
3+
"public": "build/docs"
4+
}
5+
}

0 commit comments

Comments
 (0)