-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (40 loc) · 1.33 KB
/
doxygen.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Render doxygen to github page repo
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master]
workflow_dispatch:
name: doxygen
jobs:
doxygen:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Doxygen
run: sudo apt-get install -y doxygen graphviz
- name: Extract version number from DESCRIPTION
run: |
VERSION=$(grep '^Version:' DESCRIPTION | cut -d ' ' -f 2)
sed -i "s|BVHAR_VERSION|${VERSION}|" inst/doxygen/Doxyfile
- name: Render doxygen
run: doxygen inst/doxygen/Doxyfile
- name: Create .nojekyll
run: sudo touch inst/doxygen/html/.nojekyll
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
token: ${{ secrets.YGEUNKIM_PAGE_PAT }}
repository-name: ygeunkim/ygeunkim.github.io
clean: false
branch: master
folder: inst/doxygen/html
target-folder: package/bvhar/cpp