Skip to content

Commit

Permalink
Splitting GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonhochkins committed Jan 15, 2025
1 parent 93dd715 commit d1d8b90
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,25 @@ jobs:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: build-publish
uses: bitovi/[email protected]
with:
path: storybook-static
install_command: npm i
build_command: NODE_ENV=production npm run build:for:storybook && npm run build:storybook
steps:
# Step to checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

# Step to install dependencies
- name: Install dependencies
run: npm install

# Step to build for Storybook
- name: Build for Storybook
run: NODE_ENV=production npm run build:for:storybook

# Step to build Storybook
- name: Build Storybook
run: NODE_ENV=production npm run build:storybook

# Step to deploy to GitHub Pages
- name: Deploy Storybook to GitHub Pages
uses: bitovi/[email protected]
with:
path: storybook-static
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export default {
},
} satisfies Meta<typeof AlarmCard>;


export type AlarmControlPanelStory = StoryObj<typeof AlarmCard>;
export const AlarmCardExample: AlarmControlPanelStory = {
render: Render,
Expand Down

0 comments on commit d1d8b90

Please sign in to comment.