diff --git a/.github/workflows/publish-c-apidocs.yml b/.github/workflows/publish-c-apidocs.yml index 12e3e9760a..648a242103 100644 --- a/.github/workflows/publish-c-apidocs.yml +++ b/.github/workflows/publish-c-apidocs.yml @@ -1,6 +1,8 @@ name: Update C/C++ API Docs on: - workflow_dispatch + push: + branches: + - master jobs: publish: @@ -10,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - name: Install doxygen and dependencies run: | - sudo apt update + sudo apt update sudo apt-get install libclang-9-dev sudo apt-get install libclang-cpp9 wget https://www.doxygen.nl/files/doxygen-1.9.2.linux.bin.tar.gz @@ -26,18 +28,16 @@ jobs: - uses: actions/checkout@v2 with: ref: gh-pages - clean: false + clean: false - name: Move API docs into target area run: | rm -rf docs/api/c - mv build/doxygen/html docs/api/c + mv build/doxygen/html docs/api/c - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: branch: gh-pages-pr base: gh-pages title: '[Automated]: Update C/C++ API docs' - commit-message: 'Update C/C++ API docs to commit ${{ steps.vars.outputs.sha_short }}' - add-paths: docs/api/c - - \ No newline at end of file + commit-message: 'Update C/C++ API docs to commit ${{ steps.vars.outputs.sha_short }}' + add-paths: docs/api/c diff --git a/.github/workflows/publish-python-apidocs.yml b/.github/workflows/publish-python-apidocs.yml index ba7c4eaf58..d6d1c65e96 100644 --- a/.github/workflows/publish-python-apidocs.yml +++ b/.github/workflows/publish-python-apidocs.yml @@ -1,6 +1,8 @@ name: Update Python API Docs on: - workflow_dispatch + push: + branches: + - master jobs: publish: @@ -10,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - name: Install tools run: | - sudo apt update + sudo apt update sudo apt-get install pip sudo apt-get install graphviz - name: Install dependencies @@ -23,26 +25,24 @@ jobs: - name: Generate Python docs with Sphinx run: | cd tools/doc - ./builddoc.sh /usr/bin ../.. ../../build + ./builddoc.sh /usr/bin ../.. ../../build - name: Set vars id: vars run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - uses: actions/checkout@v2 with: ref: gh-pages - clean: false + clean: false - name: Move API docs into target area run: | ls docs/api rm -rf docs/api/python - mv build/docs/inference/html docs/api/python + mv build/docs/inference/html docs/api/python - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: branch: gh-pages-pr-python-docs base: gh-pages title: '[Automated]: Update Python API docs' - commit-message: 'Update Python API docs to commit ${{ steps.vars.outputs.sha_short }}' - add-paths: docs/api/python - - \ No newline at end of file + commit-message: 'Update Python API docs to commit ${{ steps.vars.outputs.sha_short }}' + add-paths: docs/api/python