-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (42 loc) · 979 Bytes
/
deploy.yaml
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: "Deploy"
on:
pull_request:
push:
branches:
- "*"
paths:
- .github/workflows/deploy.yaml
- src/**
- locales/**
- public/**
- vite.config.ts
- vercel.json
- windi.config.ts
- package.json
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 8.2.0
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18
# cache: 'pnpm'
- name: "Install"
run: "pnpm i"
- name: "Build"
run: "pnpm run build"
env:
DEV: false
PROD: true
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: '--prod ./dist'
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}