File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : docs
2
+
3
+ on :
4
+ push :
5
+ branches : [ "latest" ]
6
+
7
+ jobs :
8
+ docs-build :
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ node-version : [16]
13
+ java : [21]
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : pnpm/action-setup@v3
17
+ with :
18
+ version : 8
19
+ - name : Use Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v3
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+ cache : pnpm
24
+ - name : Install dependencies
25
+ run : cd docs && pnpm install
26
+
27
+ - name : Set up JDK ${{ matrix.java }}
28
+ uses : actions/setup-java@v4
29
+ with :
30
+ java-version : ${{ matrix.java }}
31
+ distribution : ' temurin'
32
+ - name : Build docs
33
+ uses : gradle/actions/setup-gradle@v3
34
+ with :
35
+ arguments : buildDocs
36
+
37
+ - name : Clear docs
38
+
39
+ with :
40
+ host : ${{ secrets.SSH_HOST }}
41
+ username : ${{ secrets.SSH_USERNAME }}
42
+ port : ${{ secrets.SSH_PORT }}
43
+ key : ${{ secrets.SSH_KEY }}
44
+ script : ${{ secrets.DOCS_CLEAR_SCRIPT }}
45
+ - name : Upload docs
46
+
47
+ with :
48
+ host : ${{ secrets.SSH_HOST }}
49
+ username : ${{ secrets.SSH_USERNAME }}
50
+ port : ${{ secrets.SSH_PORT }}
51
+ key : ${{ secrets.SSH_KEY }}
52
+ source : ' ./docs/docs/.vuepress/dist/*'
53
+ target : ${{ secrets.DOCS_UPLOAD_PATH }}
You can’t perform that action at this time.
0 commit comments