-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.04 KB
/
deploy.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
36
name: Build app and deploy to aliyun
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: npm install
run: npm install
# 运行构建脚本
- name: Build VuePress site
run: npm run docs:build
# 部署到阿里云
- name: Deploy to Aliyun
uses: easingthemes/ssh-deploy@main
env:
# 私钥
SSH_PRIVATE_KEY: ${{ secrets.BSF_SERVER_SECRET }}
# scp参数
ARGS: "-avzr --delete"
# 源目录,编译后生成的文件目录
SOURCE: "./docs/.vuepress/dist/"
# 服务器ip:换成你的服务器IP
REMOTE_HOST: "${{ secrets.BSF_SERVER_HOST }}"
# 用户
REMOTE_USER: "root"
# 目标地址 你在服务器上部署代码的地方
TARGET: "/www/byteee-fund-docs/cordova-plugin-wechat"