Skip to content

Commit

Permalink
mv travis to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhuqing666 committed Sep 19, 2024
1 parent 01c1e47 commit fdf5b16
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 65 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/gitbook-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Gitbook-Branch'

on:
push:
branches:
- '[0-9]+.[0-9]+.[0-9]+.doc' #eg: 2.20.04.doc
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout action
uses: actions/checkout@v4

- name: Gitbook Action
uses: zanderzhao/[email protected] # https://github.com/ZanderZhao/gitbook-action/releases
with: # Just example, click above, use latest please
token: ${{ secrets.PUBLISH_TOKEN }}
time_zone: Asia/Shanghai # set time zone
source_branch: ${{ github.ref_name }}
publish_push_force: true
publish_dir: /history/${{ github.ref_name }}/
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

0 comments on commit fdf5b16

Please sign in to comment.