Skip to content

Commit d71ee4d

Browse files
devversionwagnermaciel
authored andcommitted
build: point automatic docs deployment to production firebase sites (#24615)
Also needs to re-configure domain DNS and wire up the new service key for the `material-angular-io` GCP project. (cherry picked from commit b4058d7)
1 parent b09c742 commit d71ee4d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

scripts/docs-deploy/clone-docs-repo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,5 @@ async function hasUpstreamDocsBranch(branchName: string): Promise<boolean> {
5858
* https://docs.google.com/document/d/1xkrSOFa6WeFqyg1cTwMhl_wB8ygbVwdSxr3K2-cps14/edit#heading=h.nsf3ag63jpwu.
5959
*/
6060
function getDocsBranchNameForMajor(major: number): string {
61-
return 'firebase-target';
62-
// TODO return `${major}.x`;
61+
return `${major}.x`;
6362
}

scripts/docs-deploy/utils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ export class SiteTarget {
1515

1616
/** Object capturing all site targets for the docs-app. */
1717
export const sites = {
18-
stable: new SiteTarget('ng-comp-test', 'https://ng-comp-test.firebaseapp.com'),
19-
next: new SiteTarget('next-ng-comp-test', 'https://next-ng-comp-test.firebaseapp.com'),
20-
rc: new SiteTarget('rc-ng-comp-test', 'https://rc-ng-comp-test.firebaseapp.com'),
18+
stable: new SiteTarget('latest-material-angular-io', 'https://material.angular.io'),
19+
next: new SiteTarget('next-material-angular-io', 'https://next.material.angular.io'),
20+
rc: new SiteTarget('rc-material-angular-io', 'https://rc.material.angular.io'),
2121

2222
forMajor: (major: number) =>
23-
new SiteTarget(`v${major}-ng-comp-test`, `https://v${major}-ng-comp-test.firebaseapp.com`),
23+
new SiteTarget(`v${major}-material-angular-io`, `https://v${major}.material.angular.io`),
2424
};
2525

2626
/** Configuration describing the Firebase project that we deploy to. */
2727
export const firebaseConfig = {
28-
projectId: 'angular-components-test',
29-
serviceKey: process.env.DOCS_SITE_FIREBASE_SERVICE_KEY!,
28+
projectId: 'material-angular-io',
29+
serviceKey: process.env.DOCS_SITE_GCP_SERVICE_KEY!,
3030
};
3131

3232
/** Finds and parsed the `package.json` of the specified project directory. */

0 commit comments

Comments
 (0)