Skip to content

Commit 840780b

Browse files
committed
fix firebase docs deploy
1 parent 1311e6a commit 840780b

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.firebaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"projects": {
3-
"default": "google.com:angular-sites"
3+
"default": "docs-angularjs-org-9p2"
44
}
55
}

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ jobs:
6767
secure: $FIREBASE_TOKEN
6868
on:
6969
repo: angular/angular.js
70-
# condition: $TRAVIS_BRANCH = chore-firebase
71-
branch: chore-firebase
70+
condition: $TRAVIS_BRANCH = chore-firebase
71+
all_branches: true
7272
# - provider: gcs
7373
# access_key_id: GOOGLDB7W2J3LFHICF3R
7474
# secret_access_key:
@@ -80,5 +80,5 @@ jobs:
8080
# on:
8181
# repo: angular/angular.js
8282
# branch: chore-firebase
83-
# condition: $TRAVIS_TAG != on_failurese || ($TRAVIS_PR == false && $TRAVIS_BRANCH = master) || $TRAVIS_BRANCH = chore-firebase
83+
# condition: $TRAVIS_TAG != on_failurese || ($TRAVIS_PR == false && $TRAVIS_BRANCH = master) || $TRAVIS_BRANCH = chore-firebase
8484

firebase.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
{
22
"hosting": {
33
"public": "build/docs",
4+
"ignore": [
5+
"/index-debug.html",
6+
"/index-jquery.html"
7+
],
8+
"redirects": [
9+
{
10+
"source": "/",
11+
"destination": "/index-production.html",
12+
"type": 301
13+
},
14+
{
15+
"source": "/index.html",
16+
"destination": "/index-production.html",
17+
"type": 301
18+
}
19+
],
420
"rewrites": [
521
{
6-
"source": "**/*!(.jpg|.jpeg|.gif|.png|.html|.js|.css|.svg|.ttf|.woff|.woff2|.eot)",
7-
"destination": "/index.html"
22+
"source": "**/*!(.jpg|.jpeg|.gif|.png|.html|.js|.json|.css|.svg|.ttf|.woff|.woff2|.eot)",
23+
"destination": "/index-production.html"
824
}
925
]
1026
}
11-
}
27+
}

0 commit comments

Comments
 (0)