Apidoc workflow added

pull/3711/head
Bahadır Sofuoğlu 2023-03-08 11:23:47 +03:00
parent c6f69602c1
commit ddfa3fee51
1 changed files with 40 additions and 0 deletions

40
.github/workflows/generate_api_doc.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Generate API DOC
on:
push:
branches: [ master ]
paths:
- '**/**/*.d.ts'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install node packages
run: npm install
- name: Generate api doc
run: npm run apidoc
- name: Commit doc
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git commit -a -m "Update API doc"
git push