-
-
Notifications
You must be signed in to change notification settings - Fork 47
45 lines (38 loc) · 920 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Docs
on:
push:
branches:
- '*'
- '!docs'
paths:
- "src/**"
- "docs/**"
- "static/**"
- "scripts/docs.ts"
- "package.json"
- ".github/workflows/docs.yml"
workflow_dispatch:
jobs:
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node 14.x
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Install dependencies
run: npm install
- name: Build documentation
run: npm run docs
- name: Deploy documentation
uses: dbots-pkg/action-docs@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update docs in repo
uses: EndBug/add-and-commit@v9
with:
add: docs/*.md
message: 'chore(docs): auto-update docs'