Skip to content

Commit

Permalink
fix(demo-build): fix demo dosc deployments (#6034)
Browse files Browse the repository at this point in the history
  • Loading branch information
denStrigo authored Sep 24, 2024
1 parent cbae7d5 commit 5f52562
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docsDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ jobs:
- uses: actions/checkout@v3
with:
ref: demo
- name: Deploy
uses: nicoinch/[email protected]
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 "[email protected]"
Expand Down
1 change: 1 addition & 0 deletions docs/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ 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://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 },
);
}
Expand Down

0 comments on commit 5f52562

Please sign in to comment.