Skip to content

Commit de2d133

Browse files
authored
Create gitbook-master.yml
1 parent 2c20ae0 commit de2d133

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/gitbook-master.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Gitbook-Master'
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout action
13+
uses: actions/checkout@v4
14+
15+
- name: Gitbook Action
16+
uses: zanderzhao/gitbook-action@v1.2.4 # https://github.com/ZanderZhao/gitbook-action/releases
17+
with: # Just example, click above, use latest please
18+
token: ${{ secrets.PUBLISH_TOKEN }}
19+
time_zone: Asia/Shanghai # set time zone
20+
source_dir: source # clone from source
21+
source_branch: master # clone source master
22+
publish_push_force: true
23+
publish_remove_last_build: false

0 commit comments

Comments
 (0)