-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (45 loc) · 1.23 KB
/
storybook-deploy.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
53
54
55
56
57
58
name: Deploy Storybook to GitHub Pages
on:
workflow_dispatch:
workflow_run:
workflows:
- 'Test and Lint'
branches:
- main
types:
- completed
concurrency:
group: storybook-deploy
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Setup Node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version-file: '.tool-versions'
cache: 'yarn'
- name: Install dependencies
run: yarn install-ci
- name: Build storybook
run: yarn build-storybook
- name: Upload storybook
uses: actions/upload-pages-artifact@84bb4cd4b733d5c320c9c9cfbc354937524f4d64 # v1
with:
path: ./storybook-static
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.pages_deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy storybook
id: pages_deployment
uses: actions/deploy-pages@de14547edc9944350dc0481aa5b7afb08e75f254 # v2