Skip to content

Generate Docs

Generate Docs #151

Workflow file for this run

name: Generate Docs
on:
workflow_dispatch:
workflow_call:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'generate-documentation'
cancel-in-progress: true
jobs:
build:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout docs
uses: actions/checkout@v2
- name: Setup node and install deps
uses: ./.github/workflows/actions/node-setup
- name: Build project
run: pnpm build
- name: Generate version
run: npx changeset version
- name: Build storybook
run: pnpm build:docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./storybook/dist
deploy:
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