[do not merge] Test pr-preview #163
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 Documentation to PR Previews | |
on: | |
pull_request: | |
paths: | |
- 'docs/**' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
concurrency: preview-${{ github.ref }} | |
jobs: | |
deploy-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build docs | |
uses: C2SM/sphinx-action@sphinx-latest | |
with: | |
build-command: "sphinx-build -b html . _build" | |
docs-folder: "docs/" | |
- name: Deploy preview | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: docs/_build | |
preview-branch: gh-pages | |
umbrella-dir: pr-preview | |
action: auto |