Skip to content

ci(ui): publish storybook web #3

ci(ui): publish storybook web

ci(ui): publish storybook web #3

name: Publish Storybook
on:
workflow_dispatch:
push:
branches:
- dev
- ci/publish-storybook
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'storybook-deploy'
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision
- run: turbo run build --filter="@leather.io/ui"
- run: pnpm build-storybook:web
working-directory: packages/ui
- name: Deploy storybook.leather.io
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.LEATHER_BOT }}
external_repository: leather-io/storybook
publish_branch: main
publish_dir: ./packages/ui/storybook-web
cname: storybook.leather.io