[Docs] add source to the Abacus script #34
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: mkdocs | |
on: | |
push: | |
paths: | |
- 'docs/**' | |
- 'mkdocs.yml' | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python runtime | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Set up build cache | |
uses: actions/cache@v2 | |
with: | |
key: ${{ github.ref }} | |
path: .cache | |
- name: Install Python dependencies | |
run: | | |
pip install mkdocs-material | |
- name: Deploy documentation | |
env: | |
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} | |
run: | | |
mkdocs gh-deploy --force |