mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-22 16:15:34 +08:00
add generate api docs step to build workflow
This commit is contained in:
13
.github/workflows/increment-build-number.yml
vendored
13
.github/workflows/increment-build-number.yml
vendored
@@ -17,11 +17,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
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
|
- 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
|
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: |
|
run: |
|
||||||
git config --global user.name 'Github Build Bot'
|
git config --global user.name 'Github Build Bot'
|
||||||
git config --global user.email 'noreply@github.com'
|
git config --global user.email 'noreply@github.com'
|
||||||
|
|||||||
Reference in New Issue
Block a user