add: actions
All checks were successful
Release / Release (push) Successful in 46s

Signed-off-by: kerbores <kerbores@gmail.com>
This commit is contained in:
2025-08-07 16:46:04 +08:00
parent 21de74de9f
commit a2d9f0084c
2 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
name: Release
run-name: ${{ gitea.actor }} is deploying project to server 🚀
on:
push:
branches:
- main
jobs:
Release:
runs-on: linux_amd64
steps:
- name: 拉取代码
uses: actions/checkout@v4
- name: 安装依赖
run: pnpm i
- name: 执行打包
run: pnpm build
- name: 部署到服务器
uses: actions/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i"
SOURCE: .vitepress/dist/
REMOTE_HOST: ${{ vars.NGINX_SERVER }}
REMOTE_USER: ${{ vars.NGINX_SERVER_USER }}
TARGET: ${{ vars.WWW_ROOT }}${{ vars.BLOG }}
EXCLUDE: ""
SCRIPT_AFTER: echo $RSYNC_STDOUT

View File

@@ -25,7 +25,7 @@ export default defineConfig({
editLink: {
text: "为此页提供修改建议",
pattern:
"https://gitea.riemann.tech/kerbores/blog/_edit/develop/docs/:path",
"https://gitea.riemann.tech/wangguiyuan/blog/_edit/develop/docs/:path",
},
search: {
provider: "local",