fix(demo-build): fix demo dosc deployments

This commit is contained in:
d.strigo 2024-09-24 16:13:35 +02:00
parent cbae7d5e3f
commit 934c393c9a
3 changed files with 7 additions and 5 deletions

View file

@ -19,10 +19,11 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: demo ref: demo
- name: Deploy - name: Checkout private repo
uses: nicoinch/ghpages@v3.0.0-alpha-1 uses: actions/checkout@v3
env: with:
GH_TOKEN: ${{ secrets.GH_PAT }} repository: akveo/ngx-admin
token: ${{ secrets.GH_PAT }}
- run: | - 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"

View file

@ -15,3 +15,4 @@ if (environment.production) {
} }
platformBrowserDynamic().bootstrapModule(AppModule); platformBrowserDynamic().bootstrapModule(AppModule);

View file

@ -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://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 }, { cwd: distDir, showLog: true },
); );
} }