File tree 1 file changed +61
-0
lines changed
1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Percona Server 8.0 docs
2
+ on :
3
+ push :
4
+ branches :
5
+ - 8.0
6
+ jobs :
7
+ build :
8
+ name : Deploy docs
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ # Pull the latest changes
13
+ - name : Chekout code
14
+ uses : percona-platform/checkout@v2
15
+ with :
16
+ fetch-depth : 0
17
+ # Prepare the env
18
+ - name : Set up Python
19
+ uses : percona-platform/setup-python@v2
20
+ with :
21
+ python-version : ' 3.x'
22
+
23
+ # Configure git
24
+ - name : Configure git
25
+ env :
26
+ ROBOT_TOKEN : ${{ secrets.ROBOT_TOKEN }}
27
+ run : |
28
+ git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com"
29
+ git config user.name "GitHub Action"
30
+ git config user.email "[email protected] "
31
+ git config user.password "${ROBOT_TOKEN}"
32
+ echo "GIT_USER=percona-platform-robot:${ROBOT_TOKEN}" >> $GITHUB_ENV
33
+ # Set up MkDocs
34
+ - name : Install MkDocs
35
+ run : |
36
+ python -m pip install --upgrade pip
37
+ pip install wheel
38
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
39
+ # Set up PlantUML
40
+ - name : Setup PlantUML dependencies
41
+ run : |
42
+ sudo apt install -y graphviz
43
+
44
+ # Deploy docs
45
+ - name : Deploy docs
46
+ run : |
47
+ mike deploy 8.0 -b publish -p
48
+ mike retitle 8.0 "8.0 (LATEST)" -b publish -p
49
+ # - name: Install Node.js 14.x
50
+ # uses: percona-platform/setup-node@v2
51
+ # with:
52
+ # node-version: "14"
53
+ #
54
+ # - name: Spelling
55
+ # run: |
56
+ # npx markdown-spellcheck --report --en-us --ignore-acronyms --ignore-numbers "docs/**/*.md" || true
57
+ # Ignore errors, just inspect results
58
+ # - name: Grammar
59
+ # run: |
60
+ # npx write-good --no-passive docs/**/*.md || true
61
+ # # Ignore errors, just inspect results
You can’t perform that action at this time.
0 commit comments