Skip to content

Commit 69bc2ea

Browse files
authored
chore: add cd for next/fluentui (#1952)
1 parent dd41eb1 commit 69bc2ea

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Deploy main storybook
5+
6+
on:
7+
push:
8+
branches: [next/fluentui]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit'
14+
15+
strategy:
16+
matrix:
17+
node-version: [16.x]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
registry-url: 'https://registry.npmjs.org'
26+
27+
- name: Build 🛠
28+
run: |
29+
npm install -g yarn lerna
30+
yarn
31+
yarn build
32+
yarn storybook:build
33+
34+
- name: Deploy mgt.dev/next 🚀
35+
uses: JamesIves/[email protected]
36+
with:
37+
branch: gh-pages
38+
folder: storybook-static
39+
target-folder: fluentui
40+
clean-exclude: |
41+
pr
42+
next
43+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)