From 93d858b24894ba761b04dd0d9cf52179cb4f82d6 Mon Sep 17 00:00:00 2001 From: pocketW <104479902+pocketW@users.noreply.github.com> Date: Thu, 28 Jul 2022 20:15:05 +1000 Subject: [PATCH] publish gitbook --- .github/gitbook-publish.yml | 16 ++++++++++++++++ book.json | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 .github/gitbook-publish.yml create mode 100644 book.json diff --git a/.github/gitbook-publish.yml b/.github/gitbook-publish.yml new file mode 100644 index 0000000..b3ae9ac --- /dev/null +++ b/.github/gitbook-publish.yml @@ -0,0 +1,16 @@ +name: 'Gitbook Action Build' +on: + push: + branches: + - master # trigger branch +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout action + uses: actions/checkout@v2 + - name: Gitbook Action # https://github.com/ZanderZhao/gitbook-action/releases + uses: ZanderZhao/gitbook-action@v1.2.4 # -> or ZanderZhao/gitbook-action@master. If not use master click above, use latest please + with: # or fork this repo and use YourName/gitbook-action@master + token: ${{ secrets.PERSONAL_TOKEN }} # -> remember add this in settings/secrets as following + prepare_install: gitbook install \ No newline at end of file diff --git a/book.json b/book.json new file mode 100644 index 0000000..ee36ac1 --- /dev/null +++ b/book.json @@ -0,0 +1,3 @@ +{ + "plugins": ["hints"] +} \ No newline at end of file