Skip to content

Commit 51d2878

Browse files
committed
feat: build docs on pushes to main
1 parent d4d5007 commit 51d2878

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/[email protected]
12+
with:
13+
persist-credentials: false
14+
15+
- name: Install and Build 🔧
16+
run: |
17+
npm i && npm run docs
18+
- name: Deploy 🚀
19+
uses: JamesIves/[email protected]
20+
with:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
BRANCH: gh-pages
23+
FOLDER: docs

0 commit comments

Comments
 (0)