-
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
Showing
1 changed file
with
13 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -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 # 服务器目标路径 | ||
|