Skip to content

upd

upd #15

Workflow file for this run

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/