Merge pull request #26 from OvertureMIDI/cleanup #8
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: Build and Deploy Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: "0" | |
- name: Configure Git Credentials | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.x | |
cache: "pip" # caching pip dependencies | |
- name: Install dependencies | |
run: pip install -r docs/requirements.txt | |
- name: Build documentation | |
run: mkdocs build | |
- name: Deploy to GitHub Pages | |
run: mkdocs gh-deploy --force |