mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(demo-build): fix demo dosc deployments (#6043)
This commit is contained in:
parent
bf289039fe
commit
d354bd1e84
4 changed files with 6 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ import { generateGithubSpaScript } from './ghspa-template';
|
|||
import { runCommand } from './run-command';
|
||||
import { log } from './log';
|
||||
|
||||
import { REPO_URL, OUT_DIR, REPO_OWNER, REPO_NAME } from './config';
|
||||
import { REPO_URL, OUT_DIR, REPO_OWNER, REPO_NAME, GH_PAT } from './config';
|
||||
const WORK_DIR = join(process.cwd(), '../_DOCS_BUILD_WORK_DIR_');
|
||||
const MASTER_BRANCH_DIR = join(WORK_DIR, 'MASTER');
|
||||
const DOCS_VERSIONS_PATH = join(MASTER_BRANCH_DIR, 'docs/versions.json');
|
||||
|
|
@ -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_PAT}@github.com/${REPO_OWNER}/${REPO_NAME}.git`,
|
||||
{ cwd: distDir, showLog: true },
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue