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