forked from p4lang/p4c
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.96 KB
/
deploy-docs.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build Doxygen and deploy to GitHub Pages
permissions:
actions: read
contents: write
pages: write
on:
push:
branches:
- main
env:
DOXYGEN_VERSION: 1.11.0
DOXYGEN_AWESOME_VERSION: 2.3.3
jobs:
build-and-deploy:
runs-on: ubuntu-latest
concurrency: ci-${{github. ref}}
steps:
- name : Checkout
uses: actions/checkout@v4
- name: Install Clang
run: |
sudo apt-get update
sudo apt-get install -y clang
- name: Install Doxygen
shell: bash
run: |
wget https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
tar xzvf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
cd doxygen-${DOXYGEN_VERSION}
sudo make install
cd ..
rm -rf doxygen-${DOXYGEN_VERSION}*
- name: Install graphviz
run: sudo apt-get install graphviz -y
- name: Clone Doxygen Awesome CSS Themes
working-directory: ./docs/doxygen
run: |
git clone --depth 1 -b v${{ env.DOXYGEN_AWESOME_VERSION }} https://github.com/jothepro/doxygen-awesome-css awesome_css
- name: Generate Doxygen Documentation
run: |
cd docs/doxygen
doxygen doxygen.cfg
shell: bash
- name: Create .nojekyll
run: |
cd docs/doxygen/build
touch html/.nojekyll
shell: bash
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/doxygen/build/html