Skip to content

Merge pull request #15 from department-of-veterans-affairs/feat/6298-… #9

Merge pull request #15 from department-of-veterans-affairs/feat/6298-…

Merge pull request #15 from department-of-veterans-affairs/feat/6298-… #9

name: Publish Documentation
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies
working-directory: ./packages/components
run: yarn install --immutable
- name: Build documentation
working-directory: ./packages/components
run: yarn storybook:build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/components/storybook-static