-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 822 Bytes
/
deploy.yml
File metadata and controls
38 lines (36 loc) · 822 Bytes
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
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: npm install, test, and build
run: |
npm ci
npm run lint
npm test
npm run build
env:
CI: true
name: CI
- name: Deploy the build
id: deploy
uses: Pendect/action-rsyncer@v1.1.0
env:
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
with:
flags: '-avzr --delete'
options: ''
ssh_options: ''
src: 'build/'
dest: ${{ secrets.DEPLOY_DESTINATION }}
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"