mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
add generate api docs step to build workflow
This commit is contained in:
parent
9fa1079248
commit
1f7f0da383
13
.github/workflows/increment-build-number.yml
vendored
13
.github/workflows/increment-build-number.yml
vendored
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user