-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 848 Bytes
/
depoly.yml
File metadata and controls
41 lines (34 loc) · 848 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
39
40
41
name: Deploy Blog on Server
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run a one-line script
uses: actions/checkout@master
- name: Download git submodule
uses: srt32/git-actions@v0.0.3
with:
args: git submodule update --init --recursive
- name: use Node.js 10
uses: actions/setup-node@v1
with:
node-version: 10
- name: npm install and build
run: |
npm install
npm run build
env:
CI: true
- name: Deploy
uses: easingthemes/ssh-deploy@v2.0.7
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
ARGS: "-avz --delete"
SOURCE: "./dist/"
REMOTE_HOST: "118.24.180.102"
REMOTE_USER: "root"
TARGET: "/home/TheBlog/dist"