aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/preview.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml
new file mode 100644
index 0000000..1080c8a
--- /dev/null
+++ b/.github/workflows/preview.yml
@@ -0,0 +1,29 @@
+name: preview
+
+on:
+ pull_request:
+ types:
+ - opened
+ - reopened
+ - synchronize
+ - closed
+
+concurrency: preview-${{ github.ref }}
+
+jobs:
+ deploy-preview:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Build HTML
+ uses: XanaduAI/sphinx-action@08cb9868314fb5be5f28644b540a38b8faaf8e87
+ with:
+ pre-build-command: >
+ apt-get update -y && apt-get install --no-install-recommends -y gettext
+ && pip install myst-parser sphinx-rtd-theme
+ docs-folder: .
+ - name: Deploy preview
+ uses: rossjrw/pr-preview-action@v1
+ with:
+ source-dir: ./_build/html/