Skip to content

Commit a7a1d80

Browse files
authored
Merge pull request #52 from solved-ac/feature/deploy-docs
Setup CI/CD for Storybook
2 parents f72e8da + 3be1532 commit a7a1d80

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/deploy-docs.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and deploy docs to GitHub Pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out repository code
11+
uses: actions/checkout@v2
12+
- name: (Package) Install dependencies and build
13+
run: yarn
14+
- name: (Example) Install dependencies
15+
working-directory: ./example
16+
run: yarn
17+
- name: (Example) Build docs
18+
working-directory: ./example
19+
run: yarn build-storybook
20+
- name: Deploy
21+
uses: peaceiris/actions-gh-pages@v3
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: ./example/storybook-static

example/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
storybook-static

0 commit comments

Comments
 (0)