aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-04-16 23:50:26 +0200
committern-peugnet <n.peugnet@free.fr>2022-04-17 00:07:55 +0200
commitd43e16f808299aa78f29e09499be2a868ce8bf75 (patch)
tree5ce10bb343533de49e8ee61d69829e3b7eed02bb /.github/workflows
parent39307a5fb28c1f5667a0fe6c708bfaf97a49d9ec (diff)
downloadclub1-docs-d43e16f808299aa78f29e09499be2a868ce8bf75.tar.gz
club1-docs-d43e16f808299aa78f29e09499be2a868ce8bf75.zip
first add of preview workflow
Diffstat (limited to '.github/workflows')
-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/