Skip to content

Commit

Permalink
[doxygen] Deploy doxygen output to connectedhomeip-doc repo (project-…
Browse files Browse the repository at this point in the history
…chip#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.
  • Loading branch information
Damian-Nordic authored and Nikita committed Sep 23, 2021
1 parent 99e1234 commit ae99744
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/doxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ name: Doxygen
on:
push:
pull_request:
workflow_dispatch:

jobs:
doxygen:
Expand All @@ -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

0 comments on commit ae99744

Please sign in to comment.