From 73f63283a367b4a82f20eb0de2475b8edec2b8c7 Mon Sep 17 00:00:00 2001 From: "d.strigo" Date: Tue, 24 Sep 2024 17:52:29 +0200 Subject: [PATCH] fix(demo-build): fix demo dosc deployments --- docs/main.ts | 1 + scripts/docs/build-docs.ts | 2 +- scripts/docs/config.ts | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/main.ts b/docs/main.ts index e2b5bd9a..11f9f131 100644 --- a/docs/main.ts +++ b/docs/main.ts @@ -15,3 +15,4 @@ if (environment.production) { } platformBrowserDynamic().bootstrapModule(AppModule); + diff --git a/scripts/docs/build-docs.ts b/scripts/docs/build-docs.ts index 04475da3..6aa9c3af 100644 --- a/scripts/docs/build-docs.ts +++ b/scripts/docs/build-docs.ts @@ -117,7 +117,7 @@ async function buildDocsApp(projectDir: string, baseHref: string) { async function deploy(distDir: string) { await runCommand( - `npx angular-cli-ghpages -S --dir . --repo=https://${GH_TOKEN}@github.com/${REPO_OWNER}/${REPO_NAME}.git`, + `npx angular-cli-ghpages -S --dir . --repo=https://github.com/${REPO_OWNER}/${REPO_NAME}.git`, { cwd: distDir, showLog: true }, ); } diff --git a/scripts/docs/config.ts b/scripts/docs/config.ts index 24bd9c48..92498fc5 100644 --- a/scripts/docs/config.ts +++ b/scripts/docs/config.ts @@ -2,4 +2,3 @@ export const REPO_URL = 'https://github.com/akveo/ngx-admin.git'; export const REPO_OWNER = 'akveo'; export const REPO_NAME = 'ngx-admin'; export const OUT_DIR = 'docs/dist'; // Relative to the directory you run command -export const GH_TOKEN = '';