Merge pull request #207 from lemoony/update-readme #23
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-dev | |
on: | |
push: | |
paths: | |
- 'docs/**' | |
- mkdocs.yml | |
branches: | |
- docs | |
- main | |
jobs: | |
deploy: | |
name: mkdocs-dev | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: true | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
pip install mike | |
pip install mkdocs-material | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Configure the git user | |
run: | | |
git config user.name "Github Actions mkdocs Bot" | |
git config user.email "actions-mkdocs-bot@github.com" | |
- name: Deploy the dev documents | |
run: mike deploy --push dev |