Skip to content

Build and deploy documentation #2

Build and deploy documentation

Build and deploy documentation #2

Workflow file for this run

name: Build and deploy documentation
on:
push:
branches:
- master
paths-ignore:
- .gitignore
- docker-compose.yaml
- Makefile
- .docker
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name "PHP Code Quality Bot"
git config user.email "[email protected]"
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force