Skip to content

Commit 36b801f

Browse files
authored
Merge pull request #1 from devnetkc/github-update-docs
👷 adding PR workflow for docs in github
2 parents fb9c662 + edd8c66 commit 36b801f

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/update-docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# @format
2+
3+
name: Update Documentation
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
env:
10+
FORCE_COLOR: 2
11+
12+
jobs:
13+
run:
14+
name: Generate Documentation README
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 16
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- name: Update documentation
30+
run: npm run docs
31+
32+
- name: Commit changes
33+
uses: EndBug/add-and-commit@v9
34+
with:
35+
author_name: GitHub Actions
36+
author_email: actions@github.com
37+
message: '📝 Generated Documentation'
38+
add: '.'

0 commit comments

Comments
 (0)