Skip to content

Workflow file for this run

name: Deploy Docusaurus site to GitHub Pages
on:
push:
tags:
- 'iv-viewer@*'
- 'react-iv-viewer@*'
jobs:
build-deploy:
if: github.event.pull_request.merged && github.event.pull_request.base.ref == 'master' && github.repository == 's-yadav/iv-viewer'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies for documentation
run: yarn install
working-directory: documentation
- name: Build Docusaurus site
run: yarn build
working-directory: documentation
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: documentation/build