Skip to content

Commit e5051ed

Browse files
author
tony green
committed
feat: updae action
1 parent 4efe5e7 commit e5051ed

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

.github/workflows/main.yml

+36-36
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
# name: deploy to aliyun
2-
# on:
3-
# push:
4-
# branches:
5-
# - master
6-
# jobs:
7-
# build:
8-
# runs-on: ubuntu-latest
9-
# steps:
10-
# # 切换分支
11-
# - name: Checkout
12-
# uses: actions/checkout@master
13-
# - name: work around permission issue
14-
# run: git config --global --add safe.directory /github/workspace
15-
# # 使用 node:10
16-
# - name: use Node.js 10
17-
# uses: actions/setup-node@v1
18-
# with:
19-
# node-version: 10
20-
# # npm install
21-
# - name: npm install and build
22-
# run: |
23-
# npm install
24-
# npm run build
25-
# env:
26-
# CI: true
27-
# # Deploy
28-
# - name: Deploy aliyun
29-
# uses: easingthemes/[email protected]
30-
# env:
31-
# SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
32-
# ARGS: "-avz --delete"
33-
# SOURCE: "./docs/.vuepress/dist/"
34-
# REMOTE_HOST: "47.111.149.160"
35-
# REMOTE_USER: "root"
36-
# TARGET: "/var/www/HerryLo.github.io"
1+
name: deploy to aliyun
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
# 切换分支
11+
- name: Checkout
12+
uses: actions/checkout@master
13+
- name: work around permission issue
14+
run: git config --global --add safe.directory /github/workspace
15+
# 使用 node:10
16+
- name: use Node.js 14
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 14
20+
# npm install
21+
- name: npm install and build
22+
run: |
23+
npm install
24+
npm run build
25+
env:
26+
CI: true
27+
# Deploy
28+
- name: Deploy aliyun
29+
uses: easingthemes/[email protected]
30+
env:
31+
SSH_PRIVATE_KEY: ${{ secrets.ACCESS_TOKEN }}
32+
ARGS: "-avz --delete"
33+
SOURCE: "./docs/.vuepress/dist/"
34+
REMOTE_HOST: "47.116.12.164"
35+
REMOTE_USER: "root"
36+
TARGET: "/www/blog2222"

0 commit comments

Comments
 (0)