This repository was archived by the owner on Jun 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ jobs:
26
26
27
27
- name : Build gh-pages
28
28
if : github.ref == 'refs/heads/master'
29
- run : ./gradlew npm_run_build-dev
30
- - name : Create index.html
31
- if : github.ref == 'refs/heads/master'
32
- run : cp dist/springwolf-ui/asyncapi-ui.html dist/springwolf-ui/index.html
29
+ run : |
30
+ ./gradlew npmInstall
31
+ npx ng build --base-href=./
32
+ cp dist/springwolf-ui/asyncapi-ui.html dist/springwolf-ui/index.html
33
33
- name : Deploy to gh pages 🚀
34
34
if : github.ref == 'refs/heads/master'
35
35
uses : JamesIves/github-pages-deploy-action@v4
Original file line number Diff line number Diff line change 5
5
"ng" : " ng" ,
6
6
"start" : " ng serve" ,
7
7
"build" : " ng build --prod --base-href=./" ,
8
- "build-dev" : " ng build --base-href=./" ,
9
8
"test" : " ng test" ,
10
9
"lint" : " ng lint" ,
11
10
"e2e" : " ng e2e" ,
Original file line number Diff line number Diff line change 1
1
# Redirects from what the browser requests to what we serve
2
- / /asyncapi-ui.html
2
+ # Usage with netlify for dev build with mock data:
3
+ # Build command: ng build --base-href=/springwolf-ui/ && mv dist/springwolf-ui/_redirects dist/_redirects
4
+ # Publish directory: dist/
5
+
6
+ / /springwolf-ui/asyncapi-ui.html
7
+ /springwolf-ui /springwolf-ui/asyncapi-ui.html
You can’t perform that action at this time.
0 commit comments