Silence unsafe repository warinings #6
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: Generate [version] documentation | ||
on: | ||
push: | ||
branches: | ||
- 'v*.*' | ||
jobs: | ||
build_current: | ||
name: Build current | ||
runs-on: ubuntu-latest | ||
container: python:3 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: 'main' | ||
- name: Install pre-requisites | ||
run: pip install -r requirements.txt | ||
- name: Install mike | ||
run: pip install mike | ||
- name: Build | ||
run: mkdocs build -v --clean | ||
- name: Configure Git user | ||
run: | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
git config --global --add safe.directory '*' | ||
- name: Deploy MkDoc with mike 🚀 | ||
run: | | ||
mike deploy --push ${{ steps.extract_branch.outputs.branch }} | ||