From 407769135c38c59fb7ee532f6e0f8ed6c481b6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Kr=C3=B3lik?= <66667989+Damian-Nordic@users.noreply.github.com> Date: Tue, 1 Jun 2021 19:55:22 +0200 Subject: [PATCH] [doxygen] Deploy doxygen output to connectedhomeip-doc repo (#7259) Currently, doxygen HTML files are deployed to "gh-pages" branch of the main connectedhomeip repo. As a result, it takes more and more time to checkout the entire repo. Move the doxygen output to an external repository. --- .github/workflows/doxygen.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doxygen.yaml b/.github/workflows/doxygen.yaml index 13710d3e544c44..a8e7136dd74be4 100644 --- a/.github/workflows/doxygen.yaml +++ b/.github/workflows/doxygen.yaml @@ -17,6 +17,7 @@ name: Doxygen on: push: pull_request: + workflow_dispatch: jobs: doxygen: @@ -38,8 +39,12 @@ jobs: run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" id: extract_branch - name: Deploy if master - if: steps.extract_branch.outputs.branch == 'master' && github.repository == 'project-chip/connectedhomeip' + #if: steps.extract_branch.outputs.branch == 'master' && github.repository == 'project-chip/connectedhomeip' + if: github.event_name == 'workflow_dispatch' uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + deploy_key: ${{ secrets.DOXYGEN_DEPLOY_KEY }} + external_repository: project-chip/connectedhomeip-doc publish_dir: ./docs/html + # Keep only the latest version of the documentation + force_orphan: true