blob: 1080c8a9e7bf1483137fb4111423dc38bca5f9b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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/
|