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

Commit 09f1325

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 c01dad6 commit 09f1325

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
- provider: firebase
8383
# the upload folder for firebase is configured in /firebase.json
8484
skip_cleanup: true
85+
project: docs-angularjs-org-9p2
8586
token:
8687
secure: $FIREBASE_TOKEN
8788
on:

Gruntfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ module.exports = function(grunt) {
376376
},
377377

378378
shell: {
379+
// Travis expects the firebase.json in the repository root, but we have it in a sub-folder
380+
'symlink-firebase-docs': {
381+
command: 'ln -s ./scripts/docs.angularjs.org-firebase/firebase.json ./firebase.json'
382+
},
379383
'install-node-dependencies': {
380384
command: 'yarn'
381385
},
@@ -475,6 +479,7 @@ module.exports = function(grunt) {
475479
'package',
476480
'compress:deployFirebaseCode',
477481
'copy:deployFirebaseCode',
482+
'shell:symlink-firebase-docs',
478483
'copy:deployFirebaseDocs'
479484
]);
480485
grunt.registerTask('default', ['package']);

0 commit comments

Comments
 (0)