mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
fix(demo-build): fix demo dosc deployments (#6035)
* fix(demo-build): fix demo dosc deployments * fix(demo-build): fix demo dosc deployments
This commit is contained in:
parent
5f52562ea2
commit
f4729fa22f
3 changed files with 5 additions and 3 deletions
5
.github/workflows/docsDeploy.yml
vendored
5
.github/workflows/docsDeploy.yml
vendored
|
|
@ -24,7 +24,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repository: akveo/ngx-admin
|
repository: akveo/ngx-admin
|
||||||
token: ${{ secrets.GH_PAT }}
|
token: ${{ secrets.GH_PAT }}
|
||||||
- run: |
|
- name: Deploy
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
npm install --silent
|
npm install --silent
|
||||||
git config --global user.email "github-action@akveo.com"
|
git config --global user.email "github-action@akveo.com"
|
||||||
git config --global user.name "Github Action"
|
git config --global user.name "Github Action"
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,3 @@ if (environment.production) {
|
||||||
}
|
}
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ async function buildDocsApp(projectDir: string, baseHref: string) {
|
||||||
|
|
||||||
async function deploy(distDir: string) {
|
async function deploy(distDir: string) {
|
||||||
await runCommand(
|
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 },
|
{ cwd: distDir, showLog: true },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue