File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy Docs to GitHub Pages
2
+ on :
3
+ push :
4
+ paths :
5
+ - ' docs/**'
6
+ - ' .github/workflows/docs-github-pages-deploy.yml'
7
+ branches :
8
+ - main
9
+ jobs :
10
+ build-and-deploy :
11
+ concurrency : ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout 🛎️
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Install and build library 🔧
18
+ run : |
19
+ npm install
20
+ npm run build
21
+
22
+ - name : Install documentation 🔧
23
+ working-directory : ./docs
24
+ run : |
25
+ npm install
26
+
27
+ - name : Build documentation 🔧
28
+ run : |
29
+ npm run docs:build
30
+
31
+ - name : Deploy 🚀
32
+
33
+ with :
34
+ branch : gh-pages # The branch the action should deploy to.
35
+ folder : ./docs/.vuepress/dist # The folder the action should deploy.
You can’t perform that action at this time.
0 commit comments