Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7300a53

Browse files
committed
chore(docs.angularjs.org): fix firebase deploy
Travis looks for the firebase.json in the repo root, but we moved each firebase project in its own sub-folder. To fix, we create a symlink before deployment.
1 parent 4c97df5 commit 7300a53

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
- provider: firebase
8282
# the upload folder for firebase is configured in /firebase.json
8383
skip_cleanup: true
84+
project: docs-angularjs-org-9p2
8485
token:
8586
secure: $FIREBASE_TOKEN
8687
on:

Gruntfile.js

+5
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ module.exports = function(grunt) {
363363
},
364364

365365
shell: {
366+
// Travis expects the firebase.json in the repository root, but we have it in a sub-folder
367+
'symlink-firebase-docs': {
368+
command: 'ln -s ./scripts/docs.angularjs.org-firebase/firebase.json ./firebase.json'
369+
},
366370
'install-node-dependencies': {
367371
command: 'yarn'
368372
},
@@ -462,6 +466,7 @@ module.exports = function(grunt) {
462466
'package',
463467
'compress:deployFirebaseCode',
464468
'copy:deployFirebaseCode',
469+
'shell:symlink-firebase-docs',
465470
'copy:deployFirebaseDocs'
466471
]);
467472
grunt.registerTask('default', ['package']);

0 commit comments

Comments
 (0)