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 848c440
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Storybook

on:
workflow_dispatch:
push:
branches:
- dev

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 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-static
cname: storybook.leather.io

0 comments on commit 848c440

Please sign in to comment.