Skip to content

Commit f38c0a1

Browse files
committed
build(demo): use custom baseHref for github pages
1 parent c5e063f commit f38c0a1

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/deploy-demo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ jobs:
5959
uses: actions/configure-pages@v3
6060

6161
- name: Build Demo
62-
run: npx nx build demo
62+
run: npx nx build demo -c github
6363

6464
- name: Upload artifact
65-
uses: actions/upload-pages-artifact@v1
65+
uses: actions/upload-pages-artifact@v2
6666
with:
6767
# Upload entire repository
6868
path: './dist/apps/demo'

apps/demo/project.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@
4444
],
4545
"outputHashing": "all"
4646
},
47+
"github": {
48+
"budgets": [
49+
{
50+
"type": "initial",
51+
"maximumWarning": "500kb",
52+
"maximumError": "1mb"
53+
},
54+
{
55+
"type": "anyComponentStyle",
56+
"maximumWarning": "2kb",
57+
"maximumError": "4kb"
58+
}
59+
],
60+
"outputHashing": "all",
61+
"baseHref": "/angular-extensions/"
62+
},
4763
"development": {
4864
"buildOptimizer": false,
4965
"optimization": false,

0 commit comments

Comments
 (0)