From f4729fa22f0e5fa0b5f1179f0cd067df87ab14ec Mon Sep 17 00:00:00 2001 From: Denis Strigo Date: Tue, 24 Sep 2024 16:29:23 +0200 Subject: [PATCH] fix(demo-build): fix demo dosc deployments (#6035) * fix(demo-build): fix demo dosc deployments * fix(demo-build): fix demo dosc deployments --- .github/workflows/docsDeploy.yml | 5 ++++- docs/main.ts | 1 - scripts/docs/build-docs.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docsDeploy.yml b/.github/workflows/docsDeploy.yml index 46b4a28e..2117723f 100644 --- a/.github/workflows/docsDeploy.yml +++ b/.github/workflows/docsDeploy.yml @@ -24,7 +24,10 @@ jobs: with: repository: akveo/ngx-admin token: ${{ secrets.GH_PAT }} - - run: | + - name: Deploy + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | npm install --silent git config --global user.email "github-action@akveo.com" git config --global user.name "Github Action" diff --git a/docs/main.ts b/docs/main.ts index 11f9f131..e2b5bd9a 100644 --- a/docs/main.ts +++ b/docs/main.ts @@ -15,4 +15,3 @@ if (environment.production) { } platformBrowserDynamic().bootstrapModule(AppModule); - diff --git a/scripts/docs/build-docs.ts b/scripts/docs/build-docs.ts index 3562e1b4..c4285629 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://github.com/${REPO_OWNER}/${REPO_NAME}.git`, + `npx angular-cli-ghpages -S --dir . --repo=https://GH_TOKEN@github.com/${REPO_OWNER}/${REPO_NAME}.git`, { cwd: distDir, showLog: true }, ); }