Skip to content

Commit

Permalink
fix(demo-build): fix demo dosc deployments (#6035)
Browse files Browse the repository at this point in the history
* fix(demo-build): fix demo dosc deployments

* fix(demo-build): fix demo dosc deployments
  • Loading branch information
denStrigo authored Sep 24, 2024
1 parent 5f52562 commit f4729fa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docsDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion docs/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ if (environment.production) {
}

platformBrowserDynamic().bootstrapModule(AppModule);

2 changes: 1 addition & 1 deletion scripts/docs/build-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
);
}
Expand Down

0 comments on commit f4729fa

Please sign in to comment.