Generate Master Documentation #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |