-
Notifications
You must be signed in to change notification settings - Fork 89
48 lines (40 loc) · 1.32 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build PMM Docs 3.x
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
- name: Setup MkDocs
run: |
python -m pip install --upgrade pip
pip install wheel
test -f requirements.txt && pip install -r requirements.txt
- name: Configure git
env:
ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com"
git config user.name "GitHub Action"
git config user.email "github-action@users.noreply.github.com"
git config user.password "${ROBOT_TOKEN}"
echo "GIT_USER=percona-platform-robot:${ROBOT_TOKEN}" >> $GITHUB_ENV
# Builds Material-themed static web site in 'preview' branch
- name: Build a themed site (2.x)
run: |
PATH=$PATH:_resources/bin mike deploy 3.x -b preview
mike set-default 3.x -b preview
mike retitle 3.x "PMM 3.x (LATEST)" -b preview