add generate api docs step to build workflow

This commit is contained in:
sunxyw 2022-04-01 20:28:20 +08:00 committed by sunxyw
parent 9fa1079248
commit 1f7f0da383
No known key found for this signature in database
GPG Key ID: CEA01A083E98C578

View File

@ -17,11 +17,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Generate API Docs
run: bin/gendoc
- name: Commit api docs
run: |
git config --global user.name 'Github Build Bot'
git config --global user.email 'noreply@github.com'
git add docs
git commit -m "update api docs"
git push
- name: Increment build number
run: sed -i -r 's/(.*)(\VERSION_ID\s=\s)([0-9]+)(.*)/echo "\1\2$((\3+1))\4"/ge' src/ZM/ConsoleApplication.php
- name: Commit change
- name: Commit build number
run: |
git config --global user.name 'Github Build Bot'
git config --global user.email 'noreply@github.com'