Skip to content

Commit 56b1fe0

Browse files
committed
chore: setup HonKit for docs and GitHub Actions deployment
1 parent 3c39453 commit 56b1fe0

File tree

5 files changed

+3208
-180
lines changed

5 files changed

+3208
-180
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy GitBook
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v3
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
20+
- name: Install Dependencies
21+
run: npm ci
22+
23+
- name: Build Docs
24+
run: npm run docs:build
25+
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./docs/_book

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
node_modules
33
npm-debug.log
4+
docs/_book

book.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"title": "Git Tips",
3+
"author": "hemanth",
4+
"description": "Collection of most commonly used git tips and tricks.",
5+
"root": "./docs"
6+
}

0 commit comments

Comments
 (0)