File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : release-manual-docs
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ tag :
6
+ default : ' '
7
+ description : ' Version tag:'
8
+ jobs :
9
+ docs-publish :
10
+ if : github.event.inputs.tag != ''
11
+ runs-on : ubuntu-18.04
12
+ timeout-minutes : 15
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ with :
16
+ ref : ${{ github.event.inputs.tag }}
17
+ - name : Use Node.js
18
+ uses : actions/setup-node@v1
19
+ with :
20
+ node-version : 16
21
+ - name : Cache Node.js modules
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : ~/.npm
25
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-node-
28
+ - name : Generate Docs
29
+ run : |
30
+ npm ci
31
+ npm run release_docs
32
+ env :
33
+ SOURCE_TAG : ${{ github.event.inputs.tag }}
34
+ - name : Deploy
35
+
36
+ with :
37
+ github_token : ${{ secrets.GITHUB_TOKEN }}
38
+ publish_dir : ./docs
You can’t perform that action at this time.
0 commit comments