-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.15 KB
/
documentation-master.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
46
47
name: Generate Master Documentation
on: [ workflow_dispatch, repository_dispatch ]
jobs:
genDocs:
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Command Handler
uses: actions/checkout@v4
with:
repository: Advanced-Command-Handler/Advanced-Command-Handler
path: 'source'
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: |
npm i
- name: Install source Dependencies
run: |
cd source
npm i
- name: Format & Lint
run: |
cd source
npm run prettier
npm run lint
- name: Generate Documentation
run: npm run generateMaster
- name: Commit changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add docs-master -f
git commit -m "docs: Generate documentation."
git push origin master