1# Copyright 2021 Avinal Kumar <avinal.xlvii@gmail.com> 2# SPDX-License-Identifier: GPL-2.0 AND LGPL-2.1 3 4name: GitHub Pages Deploy 5 6on: 7 push: 8 branches: 9 - master 10 release: 11 types: 12 - published 13 14jobs: 15 build: 16 runs-on: ubuntu-20.04 17 18 steps: 19 - name: Install Dependencies 20 run: | 21 sudo apt-get update 22 sudo apt-get install --no-install-recommends -y git doxygen graphviz 23 24 - uses: actions/checkout@v2 25 with: 26 fetch-depth: 50 27 28 - name: Execute docs generation 29 run: | 30 chmod +x utils/deploy-pages.sh 31 bash utils/deploy-pages.sh 32 env: 33 GH_REPO_REF: ${{ secrets.GH_REPO_REF }} 34 35 - name: Deploy to GitHub Pages 36 uses: peaceiris/actions-gh-pages@v3 37 with: 38 personal_token: ${{ secrets.GH_TOKEN }} 39 external_repository: ${{ secrets.GH_REPO_REF }} 40 publish_branch: master 41 publish_dir: ./code_docs 42 force_orphan: true 43 user_name: 'github-actions[bot]' 44 user_email: 'github-actions[bot]@users.noreply.github.com' 45 full_commit_message: ${{ github.event.head_commit.message }} 46