diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..78a0ceb --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,29 @@ +name: docs +on: + push: + branches: + - develop + - main + paths: + # Only rebuild website when docs have changed + - 'README.md' + - 'docs/**' + - 'mkdocs.yml' + - .github/** + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout main + uses: actions/checkout@v2 + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies and build + run: | + pip install -r docs/requirements.txt + mkdocs gh-deploy --force