-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.34 KB
/
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
44
45
46
47
48
49
50
51
52
53
name: github pages
on:
push:
branches:
- docs # Set a branch name to trigger deployment
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: OpenAPI Setup
run: npm ci
working-directory: ./internals/api-schema
- name: OpenAPI Make
run: npm run redoc
working-directory: ./internals/api-schema
- name: OpenAPI Move files
run: |
mkdir -p ./docs/publish/api-schema
mv ./internals/api-schema/dist/index.html ./docs/publish/api-schema/
- name: StoryBook Setup
run: npm ci
working-directory: ./internals/component-catalog
- name: StoryBook Setup for ~bootstrap.scss
run: npm i bootstrap@next
- name: StoryBook Make
run: npx build-storybook -c ./.storybook -o ./component-catalog --no-dll
working-directory: ./internals/component-catalog
- name: StoryBook Move files
run: |
mkdir -p ./docs/publish/component-catalog
mv ./internals/component-catalog/component-catalog ./docs/publish/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs