Skip to content

Generate Master Documentation #9

Generate Master Documentation

Generate Master Documentation #9

name: Generate Master Documentation
on: [ workflow_dispatch, repository_dispatch ]
jobs:
genDocs:
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download Command Handler
uses: actions/checkout@v2
with:
repository: Advanced-Command-Handler/Advanced-Command-Handler
path: 'source'
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- 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