File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy documentation
1
+ name : Deploy website to GitHub Pages
2
2
on :
3
3
push :
4
4
branches :
@@ -12,13 +12,21 @@ jobs:
12
12
- uses : actions/checkout@v4
13
13
- name : Setup node.js
14
14
uses : actions/setup-node@v4
15
- - name : Install
15
+ - name : Install library
16
16
run : |
17
17
npm install
18
18
- name : Build documentation
19
19
run : |
20
20
npm run docs
21
- - name : Deploy documentation
21
+ - name : Build demo application
22
+ run : |
23
+ cd demo
24
+ npm install
25
+ npm install .. --install-links
26
+ npm run build
27
+ cd ..
28
+ cp -R docs demo/dist
29
+ - name : Deploy website
22
30
uses : JamesIves/github-pages-deploy-action@v4
23
31
with :
24
- folder : docs
32
+ folder : demo/dist
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ function App() {
79
79
return (
80
80
< Container id = "main-container" >
81
81
< h1 > Elasticsearch Request Converter Demo</ h1 >
82
+ < p > → < a href = "./docs/index.html" > Library documentation</ a > </ p >
82
83
< Row >
83
84
< Col className = "col-6" >
84
85
< Stack direction = "horizontal" className = "heading" >
You can’t perform that action at this time.
0 commit comments