-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.04 KB
/
deploy-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
name: Deploy gh pages
on:
push:
branches:
- "main"
- "!gh-pages"
workflow_dispatch:
jobs:
deploy-storybook:
env:
DATABASE_URL: ${{ secrets.DATABASE_PREVIEW_URL }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install deps (with cache)
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Create env file
run: |
touch .env
echo DATABASE_URL=${DATABASE_URL} >> .env
- name: Build
run: pnpm turbo run build
- name: Build storybook(no cache)
run: pnpm turbo build:storybook
- name: Deploy to GH Pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/vujita-ui/storybook-static