-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 1.18 KB
/
deploy-storybook.yaml
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
33
34
35
36
37
38
39
40
41
42
name: Storybook
on:
push:
branches:
- ignore
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/rapid-ui
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install dependencies
run: npm install
- name: Build all components
run: npm run build
- name: Build CSS
run: npx tailwindcss -i ./src/styles/index.css -o ./src/styles/tailwind-dev.css
- name: Build Storybook
run: npm run build-storybook
- name: Deploy to Netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=packages/rapid-ui/storybook-static --prod
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: 3160fdc6-812b-403f-a540-9a1a6b2b0524