Skip to content

Commit 5f52562

Browse files
authored
fix(demo-build): fix demo dosc deployments (#6034)
1 parent cbae7d5 commit 5f52562

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/docsDeploy.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
- uses: actions/checkout@v3
2020
with:
2121
ref: demo
22-
- name: Deploy
23-
uses: nicoinch/[email protected]
24-
env:
25-
GH_TOKEN: ${{ secrets.GH_PAT }}
22+
- name: Checkout private repo
23+
uses: actions/checkout@v3
24+
with:
25+
repository: akveo/ngx-admin
26+
token: ${{ secrets.GH_PAT }}
2627
- run: |
2728
npm install --silent
2829
git config --global user.email "[email protected]"

docs/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ if (environment.production) {
1515
}
1616

1717
platformBrowserDynamic().bootstrapModule(AppModule);
18+

scripts/docs/build-docs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async function buildDocsApp(projectDir: string, baseHref: string) {
117117

118118
async function deploy(distDir: string) {
119119
await runCommand(
120-
`npx angular-cli-ghpages -S --dir . --repo=https://GH_TOKEN@github.com/${REPO_OWNER}/${REPO_NAME}.git`,
120+
`npx angular-cli-ghpages -S --dir . --repo=https://github.com/${REPO_OWNER}/${REPO_NAME}.git`,
121121
{ cwd: distDir, showLog: true },
122122
);
123123
}

0 commit comments

Comments
 (0)