Skip to content

Commit

Permalink
test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenSino committed Nov 6, 2024
1 parent c652397 commit 1deaeb8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 # 服务器目标路径

0 comments on commit 1deaeb8

Please sign in to comment.