Skip to content

bagrub is deploying the CBP-DS Web Component documentation to Github Pages #70

bagrub is deploying the CBP-DS Web Component documentation to Github Pages

bagrub is deploying the CBP-DS Web Component documentation to Github Pages #70

# Workflow name
name: Build and Publish Storybook to GitHub Pages
run-name: ${{ github.actor }} is deploying the CBP-DS Web Component documentation to Github Pages
# Event for the workflow to run on
on:
push:
branches:
- 'develop'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# List of jobs
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v3
# Set up Node
- uses: actions/setup-node@v3
with:
node-version: '20.x'
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- id: build-publish
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: npm ci # default: npm ci
build_command: npm run build-wc-package # default: npm run build-storybook
path: packages/web-components/storybook-static # default: dist/storybook
checkout: false # default: true