-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d6c77f
commit 97a87ee
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 docs:build | ||
# 部署到阿里云 | ||
- name: Deploy to Aliyun | ||
uses: easingthemes/[email protected] | ||
env: | ||
# 私钥 | ||
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
# scp参数 | ||
ARGS: "-avzr --delete" | ||
# 源目录,编译后生成的文件目录 | ||
SOURCE: "./dist" | ||
# 服务器ip:换成你的服务器IP | ||
REMOTE_HOST: "121.43.54.148" | ||
# 用户 | ||
REMOTE_USER: "root" | ||
# 目标地址 你在服务器上部署代码的地方 | ||
TARGET: "/www/byteee-fund-docs/cordova-plugin-wechat" |