-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (33 loc) · 1.01 KB
/
storybook-release.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: Release Storybook to GitHubPages
on:
push:
branches:
- main
env:
cache-version: v1
jobs:
release:
name: Project Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
working-directory: ./frontend
- name: Build storybook
run: bun run prisma generate && bun run build-storybook -o ./dist/storybook
working-directory: ./frontend
- name: Create dist/frontend directory
run: mkdir -p ./dist/frontend
working-directory: ./frontend
- name: Copy vercel-ignore-build-step.sh to dist/frontend directory
run: cp ./vercel-ignore-build-step.sh ./dist/frontend
working-directory: ./frontend
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/dist