From 1deaeb8e7875b37498cbaa0d29453bb2171d3859 Mon Sep 17 00:00:00 2001 From: chenkun <462488588@qq.com> Date: Wed, 6 Nov 2024 10:21:17 +0800 Subject: [PATCH] test deploy --- .github/workflows/deploy-docs.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index a2817542a1..5b3779d542 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -36,10 +36,22 @@ jobs: npm run docs:build > docs/.vuepress/dist/.nojekyll - - name: 部署文档 + - name: 部署文档到github.io uses: JamesIves/github-pages-deploy-action@v4 with: # 这是文档部署到的分支名称 branch: gh-pages folder: docs/.vuepress/dist + # 上传打包资源 + - name: 部署到私服 + uses: easingthemes/ssh-deploy@v2.0.7 + env: + SSH_PRIVATE_KEY: ${{ env.SSH_PRIVATE_KEY }} + ARGS: '-avz --delete' + SOURCE: 'docs/.vuepress/dist/' + REMOTE_HOST: ${{ env.SERVER_HOST }} + REMOTE_USER: ${{ env.USER_NAME }} + REMOTE_PORT: ${{ env.REMOTE_PORT }} + TARGET: /etc/nginx/www # 服务器目标路径 +