forked from xola/ui-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 870 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish UI Kit Storybook
on:
push:
branches:
- "**" # matches every branch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install dependencies
run: npm ci
- name: Generate storybook
run: npm run build:storybook
- name: Publish generated content to GitHub Pages
uses: tsunematsu21/[email protected]
with:
dir: storybook-static
branch: gh-pages
token: ${{ secrets.STORYBOOK_PUBLISH_TOKEN }}