Skip to content

Commit

Permalink
Add gitbook-source
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanderZhao committed Mar 5, 2020
1 parent 6f64472 commit e489038
Show file tree
Hide file tree
Showing 7 changed files with 851 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/gitbook-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Gitbook-Action'

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout action
uses: actions/checkout@v1

# example1
- name: Gitbook Action
uses: zanderzhao/gitbook-action@v1.2
with:
token: ${{ secrets.PERSONAL_TOKEN }}
time_zone: Asia/Shanghai
source_dir: gitbook-source
source_edit_time: true
publish_commit_message: ${{ github.event.head_commit.message }}

# example2
- name: Gitbook Action
uses: zanderzhao/gitbook-action@v1.2
with:
token: ${{ secrets.PERSONAL_TOKEN }}
time_zone: Asia/Shanghai
source_repo: GitbookIO/gitbook
source_branch: master
source_dir: docs
publish_dir: gitbook-docs
publish2_repo: gitbook-org/gitbook



Loading

0 comments on commit e489038

Please sign in to comment.