Skip to content

Commit

Permalink
chore: inline workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Nov 11, 2024
1 parent c09341a commit 5d93401
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/storybook.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# workflow based off https://storybook.js.org/docs/8.5/sharing/publish-storybook#github-pages
name: Publish Storybook to GitHub Pages
name: Storybook
description: Builds and deploys Storybook to GitHub Pages

on:
push:
Expand All @@ -22,10 +22,26 @@ jobs:
with:
node-version: 20
cache: yarn
- run: cd packages/curve-ui-kit

- uses: bitovi/[email protected]
with:
install_command: yarn install
build_command: yarn build:storybook
path: storybook-static
checkout: false

- name: 'Build'
working-directory: packages/curve-ui-kit
run: |
yarn install
yarn build:storybook
- name: 'upload'
uses: actions/upload-pages-artifact@v3
with:
path: packages/curve-ui-kit/storybook-static
name: 'github-pages'

- id: deploy
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
token: ${{ github.token }}

0 comments on commit 5d93401

Please sign in to comment.