Merge pull request #240 from Percona-Lab/Doc-Update-release-notes #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build pg_tde documentation | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'documentation/**' | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
#Pull the latest changes | |
- name: Chekout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
#Prepare the env | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
#Configure git | |
- 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 | |
#Set up MkDocs | |
- name: Install MkDocs | |
run: | | |
cd documentation | |
python -m pip install --upgrade pip | |
pip install wheel | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
# Deploy docs | |
- name: Deploy docs | |
run: | | |
cd documentation | |
mike deploy main -p | |
mike set-default main -p | |
mike retitle main "Beta" -p |