From d43e16f808299aa78f29e09499be2a868ce8bf75 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Sat, 16 Apr 2022 23:50:26 +0200 Subject: first add of preview workflow --- .github/workflows/preview.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/preview.yml (limited to '.github/workflows') 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/ -- cgit v1.2.3