Skip to content

Commit fec8528

Browse files
committed
mv travis to actions
1 parent cf9c423 commit fec8528

File tree

2 files changed

+21
-65
lines changed

2 files changed

+21
-65
lines changed

.github/workflows/gitbook-branch.yml

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

.travis.yml

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

0 commit comments

Comments
 (0)