diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 12bbe1a7..e15e6f0d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,10 +1,14 @@ -name: docs +name: Documentation + on: push: - branches: - - main + branches: [main] + pull_request: + branches: [main] + permissions: contents: write + jobs: deploy: runs-on: ubuntu-latest @@ -24,5 +28,5 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - run: pip install mkdocs-material mkdocstrings + - run: pip install mkdocs-material mkdocstrings mkdocstrings_handlers - run: mkdocs gh-deploy --force