Skip to content

Commit d52f6bd

Browse files
committed
配置 action 自动部署
1 parent 0dd3c9a commit d52f6bd

File tree

2 files changed

+37
-27
lines changed

2 files changed

+37
-27
lines changed

.github/workflows/book.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: mdbook
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
- "releases/*"
8+
pull_request:
9+
branches:
10+
- main
11+
- master
12+
types:
13+
- closed
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-18.04
17+
steps:
18+
- name: Git checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Setup mdBook
22+
uses: peaceiris/actions-mdbook@v1
23+
with:
24+
mdbook-version: '0.4.10'
25+
# mdbook-version: 'latest'
26+
27+
- run: mdbook build
28+
29+
- name: Deploy
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
personal_token: ${{ secrets.MY_DEPLOY_KEY }}
33+
external_repository: KusionStack/kusionstack.github.io
34+
publish_dir: ./book
35+
publish_branch: gh-pages
36+
user_name: 'github-actions[bot]'
37+
user_email: 'github-actions[bot]@users.noreply.github.com'

.github/workflows/main.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)