Skip to content

Commit 6f951d1

Browse files
Merge pull request percona#17 from alina-derkach-oaza/ps-8.0-8410
PS 8410 Configure GH actions and add project to Render (8.0)
2 parents 31f5be8 + ddadab7 commit 6f951d1

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/main.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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

0 commit comments

Comments
 (0)