-
Notifications
You must be signed in to change notification settings - Fork 321
48 lines (46 loc) · 1.46 KB
/
publish-storybook.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
name: Publish Storybooks
on:
workflow_run:
workflows: ["Release new version"]
types:
- completed
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Setup
uses: ./.github/actions/setup
with:
npm_token: ${{ secrets.npm_token }}
- name: Build & deploy Storybooks to GitHub Pages
run: |
yarn lerna run build --include-dependencies
yarn lerna run --scope @vibe/core build-storybook
yarn lerna run --scope vibe-storybook-components build-storybook
cd packages/core/static_storybook
echo "vibe.monday.com" > ./CNAME
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
- name: Push storybook-blocks Storybook to Github Pages
if: success()
uses: JamesIves/[email protected]
with:
folder: packages/storybook-blocks/storybook-static
branch: gh-pages
target-folder: storybook-blocks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push core Storybook to Github Pages
uses: JamesIves/[email protected]
with:
clean-exclude: |
storybook-blocks/*
v2/*
folder: packages/core/static_storybook
branch: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}