fraudo/.github/workflows/deploy-docs.yml
2022-08-25 15:19:03 +03:00

35 lines
756 B
YAML

name: deploy
on:
push:
branches:
- master
env:
PYTHON_VERSION: 3.x
jobs:
documentation:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python runtime
uses: actions/setup-python@v1
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Python dependencies
run: |
pip install -r requirements.txt
- name: Install theme
run: |
pip install mkdocs-gitbook
- name: Deploy documentation
env:
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: |
mkdocs gh-deploy --force
mkdocs --version