diff --git a/.github/workflows/gitbook.yml b/.github/workflows/gitbook.yml new file mode 100644 index 0000000..0e3c73f --- /dev/null +++ b/.github/workflows/gitbook.yml @@ -0,0 +1,22 @@ +name: 'Gitbook-Action' + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout action + uses: actions/checkout@v1 + + # example1--> https://ZanderZhao.github.io/gitbook-action + - name: Gitbook Action + uses: zanderzhao/gitbook-action@v1.2.4 # https://github.com/ZanderZhao/gitbook-action/releases + with: # Just example, click above, use latest please + token: ${{ secrets.GITBOOK_TOKEN }} + time_zone: London/Central # set time zone + source_edit_time: true # source time + publish_commit_message: ${{ github.event.head_commit.message }} # use last commit message \ No newline at end of file