-
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.
Signed-off-by: Shanshui2024 <shanshui20232023@outlook.com>
- Loading branch information
1 parent
0c14bc0
commit e893d39
Showing
9 changed files
with
81 additions
and
15 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,42 @@ | ||
name: Node CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm install | ||
- run: npm run build | ||
|
||
|
||
- name: Deploy to Baota Server | ||
uses: easingthemes/ssh-deploy@v4.1.8 # 使用ssh-deploy Action | ||
with: | ||
ssh-private-key: ${{ secrets.SERVER_SSH_KEY }} # 服务器SSH私钥 | ||
remote-user: ${{ secrets.SERVER_USER }} # 服务器用户名 | ||
remote-host: ${{ secrets.SERVER_HOST }} # 服务器地址 | ||
remote-port: ${{ secrets.SERVER_PORT }} # SSH端口,默认为22 | ||
target-path: ${{ secrets.SERVER_TARGET }} # 服务器上的目标路径 | ||
source: 'dist/' # 要上传的本地目录 | ||
args: '-rltgoDzv' # rsync参数 | ||
before-script: | | ||
mkdir -P ${{ secrets.SERVER_TARGET }} | ||
rm -rf ${{ secrets.SERVER_TARGET }}/* | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true |
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,2 @@ | ||
/node_modules | ||
/docs/.vitepress/cache |
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
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
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,17 @@ | ||
--- | ||
sidebar_position: 4 | ||
title: 摸头 | ||
--- | ||
# 今日人品 | ||
|
||
用法:`@机器人 摸` | ||
|
||
示例: | ||
``` | ||
@机器人 摸1680839 | ||
``` | ||
|
||
获取成功-返回示例: | ||
``` | ||
[表情包] | ||
``` |
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.