From 7cc4984433710a95d744fd931ea8d67b520afdac Mon Sep 17 00:00:00 2001 From: Franziska Wegner <57569315+franziska-wegner@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:00:05 -0800 Subject: [PATCH] Publish Documentation to Github Pages cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index f1c40d99..508b8a98 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -210,3 +210,19 @@ jobs: if (NOT result EQUAL 0) message(FATAL_ERROR "Building documentation failed") endif() + + # See https://github.com/marketplace/actions/github-pages-action#%EF%B8%8F-deploy-to-external-repository-external_repository + # for more information on the parameters. + - name: Publish Documentation to Github Pages + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.event_name == 'push' && startsWith(matrix.os,'ubuntu-') }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: documentation/html + force_orphan: true + commit_message: ${{ github.event.head_commit.message }} + publish_branch: gh-pages + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' + # if: ${{ github.event_name == 'push' && matrix.config.name == 'Ubuntu Latest GCC Release' }}