Skip to content

Commit 3bae930

Browse files
authored
feat: create kaspersky-hexa-ui-storybook.yml
1 parent 878ea66 commit 3bae930

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "[storybook] @kaspersky/hexa-ui"
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
paths:
8+
- 'packages/kaspersky-hexa-ui/**'
9+
- '.github/workflows/kaspersky-hexa-ui-storybook.yml'
10+
workflow_dispatch:
11+
12+
jobs:
13+
deploy:
14+
environment:
15+
name: github-pages
16+
url: ${{ steps.deployment.outputs.page_url }}
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pages: write
21+
id-token: write
22+
defaults:
23+
run:
24+
working-directory: ./packages/kaspersky-hexa-ui
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
- name: Install dependencies
29+
shell: bash
30+
run: |
31+
npm ci
32+
- name: Build Storybook
33+
shell: bash
34+
run: |
35+
npm run build-storybook
36+
- name: Deploy to GitHub Pages
37+
uses: peaceiris/actions-gh-pages@v3
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: ./packages/kaspersky-hexa-ui/storybook/hexa-ui
41+
destination_dir: hexa-ui

0 commit comments

Comments
 (0)