File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy wiki
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : main
7
+
8
+ jobs :
9
+ deploy-web-app :
10
+ name : Deploy wiki
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write
14
+ steps :
15
+ - name : Check out the repository
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Set up JDK
19
+ uses : actions/setup-java@v4
20
+ with :
21
+ distribution : temurin
22
+ java-version : 17
23
+
24
+ - name : Build wiki
25
+ run : |
26
+ pip3 install --upgrade pip && pip3 install --upgrade mkdocs-material mkdocs-material-extensions mkdocs-minify-plugin mkdocs-static-i18n
27
+ ./build_docs.sh
28
+
29
+ - name : Check out the gh-pages branch
30
+ run : |
31
+ git fetch origin gh-pages:gh-pages
32
+ git checkout gh-pages
33
+
34
+ - name : Remove old app directory
35
+ run : |
36
+ rm -rf wiki/*
37
+
38
+ - name : Create app directory
39
+ run : mkdir -p wiki
40
+
41
+ - name : Move build artifacts to wiki directory
42
+ run : |
43
+ mv site/* wiki/
44
+
45
+ - name : Commit and push changes
46
+ uses : stefanzweifel/git-auto-commit-action@v4
47
+ env :
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
+ with :
50
+ commit_message : " Update wiki"
51
+ branch : gh-pages
52
+ file_pattern : wiki/*
You can’t perform that action at this time.
0 commit comments