Skip to content

Commit

Permalink
feat: Add GitHub Actions workflow for previewing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Apr 14, 2024
1 parent b0e2b09 commit ce4c89b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs_preview.yml
@@ -0,0 +1,34 @@
name: Docs Preview

permissions:
pull-requests: write

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
- closed
paths:
- "docs/**"
- "fortls/interface.py"
workflow_dispatch:

concurrency: preview-${{github.ref}}

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: sphinx-toolbox/sphinx-action@master
with:
pre-build-command: "pip install .[docs]"
docs-folder: "docs/"
- name: Deploy Preview
uses: rossjrw/pr-preview-action@v1.4.7
with:
source-dir: docs/_build/html
preview-branch: gh-pages

0 comments on commit ce4c89b

Please sign in to comment.