From 934c393c9ad29e141a6f078a4a081d1857e11b49 Mon Sep 17 00:00:00 2001 From: "d.strigo" Date: Tue, 24 Sep 2024 16:13:35 +0200 Subject: [PATCH] fix(demo-build): fix demo dosc deployments --- .github/workflows/docsDeploy.yml | 9 +++++---- docs/main.ts | 1 + scripts/docs/build-docs.ts | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docsDeploy.yml b/.github/workflows/docsDeploy.yml index 8b137fd5..46b4a28e 100644 --- a/.github/workflows/docsDeploy.yml +++ b/.github/workflows/docsDeploy.yml @@ -19,10 +19,11 @@ jobs: - uses: actions/checkout@v3 with: ref: demo - - name: Deploy - uses: nicoinch/ghpages@v3.0.0-alpha-1 - env: - GH_TOKEN: ${{ secrets.GH_PAT }} + - name: Checkout private repo + uses: actions/checkout@v3 + with: + repository: akveo/ngx-admin + token: ${{ secrets.GH_PAT }} - run: | npm install --silent git config --global user.email "github-action@akveo.com" 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 c4285629..3562e1b4 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 }, ); }