Merge pull request #49 from castedo/patch-1 #32
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
on: | |
push: | |
branches: [main] | |
jobs: | |
build_current: | |
name: Build current | |
runs-on: ubuntu-latest | |
container: python:3 | |
steps: | |
- uses: actions/checkout@v3 | |
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 --add safe.directory '*' | |
git fetch origin gh-pages --depth=1 | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
- name: Deploy MkDoc with mike 🚀 | |
run: | | |
mike deploy --push dev |