-
Notifications
You must be signed in to change notification settings - Fork 1
92 lines (80 loc) · 2.14 KB
/
deploy-docs.yaml
File metadata and controls
92 lines (80 loc) · 2.14 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Deploy Docs
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
on:
workflow_dispatch:
inputs:
deploy_mode:
description: 'Mode'
type: choice
options: ['dev', 'prod']
required: false
default: 'dev'
deploy_docs:
description: 'Documentation'
type: boolean
required: false
default: true
deploy_storybook:
description: 'Storybook'
type: boolean
required: false
default: true
workflow_call:
inputs:
deploy_mode:
description: 'Mode'
type: string
required: false
default: 'dev'
deploy_docs:
description: 'Documentation'
type: boolean
required: false
default: true
deploy_storybook:
description: 'Storybook'
type: boolean
required: false
default: true
jobs:
deploy_docs:
if: ${{ github.event.inputs.deploy_docs == 'true' }}
name: Deploy-Docs
timeout-minutes: 30
runs-on: ubuntu-latest
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_DOCS_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Printout
uses: ./.github/actions/printout
- name: Setup
uses: ./.github/actions/setup
- name: Deploy
uses: ./.github/actions/deploy-docs
with:
mode: ${{ github.event.inputs.deploy_mode }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}
app_dir: ./apps/docs
deploy_storybook:
if: ${{ github.event.inputs.deploy_storybook == 'true' }}
name: Deploy-Storybook
timeout-minutes: 30
runs-on: ubuntu-latest
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_STORYBOOK_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Printout
uses: ./.github/actions/printout
- name: Setup
uses: ./.github/actions/setup
- name: Deploy
uses: ./.github/actions/deploy-docs
with:
mode: ${{ github.event.inputs.deploy_mode }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}
app_dir: ./apps/storybook