Skip to content

Commit bb92635

Browse files
committed
2 parents 0cb062f + da28ccc commit bb92635

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,37 @@ jobs:
1010
build-and-deploy:
1111
runs-on: ubuntu-latest
1212

13+
env:
14+
DOXYGEN_VERSION: '1.13.2'
15+
1316
steps:
1417
# Step 1: Checkout the repository
1518
- name: Checkout repository
1619
uses: actions/checkout@v3
1720

1821
# Step 2: Set up Doxygen
19-
- name: Install Doxygen and Graphviz
22+
- name: Install Dependencies
2023
run: |
2124
sudo apt-get update
22-
sudo apt-get install doxygen=1.13.2-1ubuntu1 graphviz -y
25+
sudo apt-get install texlive graphviz -y
26+
27+
# Step 3: Install Doxygen
28+
- name: Install Doxygen v${{ env.DOXYGEN_VERSION }}
29+
run: |
30+
transformed_version=$(echo "${{ env.DOXYGEN_VERSION }}" | tr '.' '_')
31+
wget https://github.com/doxygen/doxygen/releases/download/Release_${transformed_version}/doxygen-${{ env.DOXYGEN_VERSION }}.linux.bin.tar.gz
32+
tar -xzf doxygen-${{ env.DOXYGEN_VERSION }}.linux.bin.tar.gz
33+
sudo mv doxygen-${{ env.DOXYGEN_VERSION }}/bin/doxygen /usr/local/bin/doxygen
2334
24-
# Step 3: Generate Doxygen documentation
35+
# Step 4: Generate Doxygen documentation
2536
- name: Generate Doxygen Documentation
2637
run: cd project/doxygen && doxygen
2738

28-
# Step 4: Ensure no Jekyll is present
39+
# Step 5: Ensure no Jekyll is present
2940
- name: Create .nojekyll file
3041
run: echo "" > ./project/doxygen/html/.nojekyll
3142

32-
# Step 5: Deploy to `gh-pages` branch
43+
# Step 6: Deploy to `gh-pages` branch
3344
- name: Deploy to GitHub Pages
3445
uses: peaceiris/actions-gh-pages@v3
3546
with:

0 commit comments

Comments
 (0)