forked from lyrio-dev/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 906 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
37
38
39
40
name: CI
on:
push:
branches:
- gtdh
pull_request:
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2-beta
with:
node-version: 14.x
- name: Install
run: yarn
- name: Check style
run: yarn check-style
- name: Test
run: yarn test --watchAll=false --silent
- name: Build
run: yarn build
- name: Deploy
if: github.ref == 'refs/heads/gtdh'
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: build/
remote_path: /home/xsun2001/syzoj/syzoj-ng-frontend/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_port: ${{ secrets.DEPLOY_PORT }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}