-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.11 KB
/
storybook-ci.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
on:
push:
branches:
- 'main'
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
ref: main
- name: Node.js v16
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install
run: yarn install
- name: Build
run: yarn build:sb
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: build-artifact
path: storybook-static
deploy:
environment:
name: storybook
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v1
with:
name: build-artifact
path: storybook-static
- name: Deploy
uses: South-Paw/[email protected]
with:
build-dir: './storybook-static'
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}