Version 6.3.1 #28
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: 📖 Documentation | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'CHANGELOG.md' | |
- 'CONTRIBUTING.md' | |
- 'docs/**' | |
- 'mkdocs.yml' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get source code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.10 | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
cache-dependency-path: "requirements/doc.txt" | |
- name: Set up NodeJS (for search index prebuilding) | |
uses: actions/[email protected] | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -r requirements/doc.txt | |
- name: Copy CHANGELOG.md and CONTRIBUTING.md | |
run: | | |
cp CHANGELOG.md docs/ | |
cp CONTRIBUTING.md docs/ | |
- name: Deploy to Github Pages | |
run: | | |
git config --global user.name "${{ secrets.BOT_NAME }}" | |
git config --global user.email "${{ secrets.BOT_MAIL }}" | |
mkdocs gh-deploy --clean --force --verbose |