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:
Denis Strigo 2024-09-24 16:29:23 +02:00 committed by GitHub
parent 5f52562ea2
commit f4729fa22f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -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"

View file

@ -15,4 +15,3 @@ 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://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 },
); );
} }