Skip to content

Commit a4baf3e

Browse files
authoredAug 14, 2024
Merge pull request #99 from Chia-Chi-Shen/storybook
Merge Storybook version 1
2 parents 2ed60d0 + 9ae655c commit a4baf3e

File tree

99 files changed

+27859
-19166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+27859
-19166
lines changed
 

‎.eslintrc.js

-27
This file was deleted.

‎.github/workflows/deploy.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Storybook to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- storybook
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.16.0'
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build Storybook
25+
env:
26+
STORYBOOK_AZURE_MAPS_KEY: ${{ secrets.STORYBOOK_AZURE_MAPS_KEY }}
27+
run: npm run build-storybook
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./storybook-static

0 commit comments

Comments
 (0)