-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.33 KB
/
main.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
name: Deploy Blog
on:
push:
branches:
- Blog
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v2
- name: Install Hexo
run: |
npm config set registry https://registry.npm.taobao.org
npm install hexo-cli -g
npm install hexo --no-optional
- name: Hexo Generate
run: |
hexo clean
hexo g
- name: Deploy
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: '-rltgoDzvO'
SOURCE: ${{ secrets.SOURCE }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
TARGET: ${{ secrets.TARGET }}