-
Notifications
You must be signed in to change notification settings - Fork 31
43 lines (35 loc) · 913 Bytes
/
gh-pages.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
name: gh-pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'stories/**/*'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 18.x
- name: Setup expo cli
uses: expo/expo-github-action@v8
with:
expo-version: 4.x
- name: Install dependencies
run: yarn install --network-concurrency 1
- name: Lerna setup for packages
run: yarn pre
- name: Install packages and build storybook
run: |
yarn build:storybook
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_branch: gh-pages
publish_dir: ./web-build
SCRIPT_MODE: true