-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (50 loc) · 1.31 KB
/
deploy-apps.yaml
File metadata and controls
57 lines (50 loc) · 1.31 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
name: Deploy Apps
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_example_vite:
description: 'Example Vite'
type: boolean
required: false
default: true
workflow_call:
inputs:
deploy_mode:
description: 'Mode'
type: string
required: false
default: 'dev'
deploy_example_vite:
description: 'Example Vite'
type: boolean
required: false
default: true
jobs:
deploy_example_vite:
if: ${{ github.event.inputs.deploy_example_vite == 'true' }}
name: Deploy-Example-Vite-Dev
timeout-minutes: 30
runs-on: ubuntu-latest
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_EXAMPLE_VITE_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-apps
with:
mode: ${{ github.event.inputs.deploy_mode }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}
app_dir: ./apps/example-vite