Skip to content

Update documentation #91

Update documentation

Update documentation #91

Workflow file for this run

name: Update documentation
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js environment
uses: ./.github/actions/node_env_setup
with:
node-version: '22'
- name: Git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Build documentation
run: pnpm storybook:build && sh ./scripts/examples-preview.sh
env:
GH_PAGES_PATH: https://design-web-components.vercel.app
- name: Publish on gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
pnpm storybook:deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}