Synchronizes markdown files of repository directory to a cloud-based Gitbook space. Uses filename as document title. Does not support sub-directories.
Create a github workflow in the .github
folder, e.g. .github/workflows/gitbook.yml
:
name: Sync dir to Gitbook
on: [push]
jobs:
gitbook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: mineko-io/[email protected]
with:
token: ${{ secret.GITBOOK_TOKEN }}
dir: doc/adrs
org: Mineko
space: Foo Bar
group: ADRs
apiEndpoint: https://api-beta.gitbook.com/v1
gitbook access token
repository directory to sync
organization title
space name
endpoint to gitbook api
optional name of group to create / sync pages under