-
Notifications
You must be signed in to change notification settings - Fork 211
36 lines (34 loc) · 896 Bytes
/
ci.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
name: Action CI
on:
push:
branches:
- master
- release
jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup nodejs
uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Install
run: npm i
# - name: Lint
# run: npm run lint
- name: Build-seo
run: npm run build:seo
- name: Build
run: npm run build
- name: Deploy to Tencent Cloud
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.HOST_SSH_PRIVATE_KEY }}
ARGS: -avzr --delete
SOURCE: ./static ./mvvm ./2015
REMOTE_HOST: ${{ secrets.HOST_IP_ADDR }}
REMOTE_USER: ${{ secrets.HOST_DEPLOY_USER }}
TARGET: ${{ secrets.HOST_DEPLOY_PATH }}
EXCLUDE: /node_modules/