forked from qualcomm/userspace-resource-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 896 Bytes
/
doc_generator.yml
File metadata and controls
33 lines (27 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy Doxygen Docs to gh-pages
on:
push:
branches:
- main
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install Doxygen
run: sudo apt-get update && sudo apt-get install -y doxygen
- name: Generate Doxygen Documentation
run: doxygen docs/Doxyfile
- name: Deploy to gh-pages branch
run: |
ROOT=$(pwd)
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git checkout --orphan gh-pages
cd docs/html
touch .nojekyll
git init
git add .
git commit -m "Deploy Doxygen documentation"
git push -f "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" HEAD:gh-pages