fix(demo-build): fix demo dosc deployments (#6034)

This commit is contained in:
Denis Strigo 2024-09-24 16:15:27 +02:00 committed by GitHub
parent cbae7d5e3f
commit 5f52562ea2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View file

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

View file

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

View file

@ -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 },
);
}