From 1f7f0da383de9d9251759bd5e8db76e4195f5dcd Mon Sep 17 00:00:00 2001 From: sunxyw <31698606+sunxyw@users.noreply.github.com> Date: Fri, 1 Apr 2022 20:28:20 +0800 Subject: [PATCH] add generate api docs step to build workflow --- .github/workflows/increment-build-number.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/increment-build-number.yml b/.github/workflows/increment-build-number.yml index 7379b468..b8a3af41 100644 --- a/.github/workflows/increment-build-number.yml +++ b/.github/workflows/increment-build-number.yml @@ -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'