mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 07:30:12 +01:00
fix(demo-build): fix demo dosc deployments (#6034)
This commit is contained in:
parent
cbae7d5e3f
commit
5f52562ea2
3 changed files with 7 additions and 5 deletions
9
.github/workflows/docsDeploy.yml
vendored
9
.github/workflows/docsDeploy.yml
vendored
|
|
@ -19,10 +19,11 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: demo
|
||||
- name: Deploy
|
||||
uses: nicoinch/ghpages@v3.0.0-alpha-1
|
||||
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 "github-action@akveo.com"
|
||||
|
|
|
|||
|
|
@ -15,3 +15,4 @@ if (environment.production) {
|
|||
}
|
||||
|
||||
platformBrowserDynamic().bootstrapModule(AppModule);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue