Skip to content

Merge pull request #472 from VRamakrishna/main #27

Merge pull request #472 from VRamakrishna/main

Merge pull request #472 from VRamakrishna/main #27

Workflow file for this run

# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: CC-BY-4.0
name: Deploy Docs (Github Pages)
on:
push:
branches:
- main
paths:
- 'docs/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: NPM INSTALL
run: npm install
working-directory: docs
- name: Build
run: npm run build
working-directory: docs
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/build # The folder the action should deploy.