From 2b7c2180832520b9f31b869b494107c0a490aea6 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 6 Jan 2023 14:35:29 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Added=20CI=20for=20deploying=20d?= =?UTF-8?q?ocumentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferdinand Thiessen --- .github/workflows/documentation.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 00000000..44f20933 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,32 @@ +name: Deploy documentation +on: + push: + branches: + - master + +permissions: + contents: write + +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up node + uses: actions/setup-node@v3 + with: + node-version-file: 'package.json' + + - name: Install dependencies & build + run: | + npm ci + npm run build:doc + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist/doc + branch: gh-pages