Skip to content

Commit f4729fa

Browse files
authored
fix(demo-build): fix demo dosc deployments (#6035)
* fix(demo-build): fix demo dosc deployments * fix(demo-build): fix demo dosc deployments
1 parent 5f52562 commit f4729fa

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/docsDeploy.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
with:
2525
repository: akveo/ngx-admin
2626
token: ${{ secrets.GH_PAT }}
27-
- run: |
27+
- name: Deploy
28+
env:
29+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: |
2831
npm install --silent
2932
git config --global user.email "[email protected]"
3033
git config --global user.name "Github Action"

docs/main.ts

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ 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://github.com/${REPO_OWNER}/${REPO_NAME}.git`,
120+
`npx angular-cli-ghpages -S --dir . --repo=https://GH_TOKEN@github.com/${REPO_OWNER}/${REPO_NAME}.git`,
121121
{ cwd: distDir, showLog: true },
122122
);
123123
}

0 commit comments

Comments
 (0)