-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 1.15 KB
/
deploy-dev.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
name: Deploy develop
on:
pull_request:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"
- run: rm -rf vercel.json && mv vercel-local.json vercel.json
- name: Cache multiple paths
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
id: smart-vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
project_name: subscan-pro-lowcode
dist_path: build
script_build: yarn build:local
enable_cache: true
cache_type: yarn
- uses: marocchino/sticky-pull-request-comment@v2
with:
append: true
message: ${{ steps.smart-vercel.outputs.PREVIEW_OUTPUT }}