Skip to content

Commit

Permalink
ci(ui): publish storybook web
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Nov 19, 2024
1 parent ab26689 commit a09ebc8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: pnpm add turbo

- 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

0 comments on commit a09ebc8

Please sign in to comment.