-
Notifications
You must be signed in to change notification settings - Fork 166
31 lines (29 loc) · 1.19 KB
/
docs.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
name: Deploy Docs
on:
push:
branches:
- "2.0"
paths:
- 'docs/**/**'
- 'package.json'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: yarn && yarn docs:build
- name: Deploy
uses: easingthemes/ssh-deploy@main
env:
# 本地.ssh文件下的私钥id_rsa,存在secrets的TOKEN中
SSH_PRIVATE_KEY: ${{ secrets.HARRYWAN_PRIVATE_KEY }}
# 源目录,相对于$GITHUB_WORKSPACE根目录的路径
SOURCE: docs/.vuepress/dist/
# 服务器域名
REMOTE_HOST: ${{ secrets.TX_IP }}
# 腾讯云默认用户名为root
REMOTE_USER: root
# 目标目录
TARGET: /data/web-packages/p/fesjs/2.0