Skip to content

Merge pull request #518 from Kitware/v4.2 #154

Merge pull request #518 from Kitware/v4.2

Merge pull request #518 from Kitware/v4.2 #154

Workflow file for this run

name: Publish Docs
on:
push:
branches:
- main
# enable manual trigger
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
name: Build Docs
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run doc
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: './documentation/build-tmp/public'
deploy:
name: Deploy Docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1