Skip to content

Use fetch_depth: 0

Use fetch_depth: 0 #58

Workflow file for this run

name: Build and Deploy MkDocs to GitHub Pages
on:
push:
branches: [ develop ]
tags: [ v* ]
paths:
- .github/workflows/mkdocs.yml
- docs/**
workflow_dispatch:
jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
with:
fetch_depth: 0
- name: 🧰 Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- name: 🔨 Install rzk proof assistant
uses: jaxxstorm/action-install-gh-release@v1.10.0
with:
repo: fizruk/rzk
tag: latest # FIXME: should use the version from the same Git commit
rename-to: rzk
chmod: 0755
- name: 🔨 Install Pygments lexer for rzk
run: pip install rzk/RzkLexer
- name: 🔨 Install MkDocs Material and mike
run: pip install -r docs/requirements.txt
- name: ⚙️ Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: 🚀 Deploy with mike (${{ github.ref_name }}, latest)
if: ${{ github.ref_name != 'develop' }}
run: |
mike deploy --rebase --push --config-file docs/mkdocs.yml ${{ github.ref_name }} latest
- name: 🚀 Deploy with mike (${{ github.ref_name }})
if: ${{ github.ref_name == 'develop' }}
run: |
mike deploy --rebase --push --config-file docs/mkdocs.yml ${{ github.ref_name }}