-
-
Notifications
You must be signed in to change notification settings - Fork 107
41 lines (39 loc) · 998 Bytes
/
deploy-ui.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
name: Deploy UI
on:
push:
branches:
- master
paths:
- 'xmcl-keystone-ui/**'
jobs:
build-web:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: pnpm/[email protected]
with:
version: 7.13.2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
- name: Install
run: pnpm install --filter=!./xmcl-page --filter=!./electron-app
- name: Build
run: |
pnpm run --prefix xmcl-keystone-ui build
env:
BUILD_NUMBER: ${{ env.GITHUB_RUN_NUMBER }}
- name: Deploy to vercel
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: '--prod ./xmcl-keystone-ui/dist'
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}