Skip to content

Commit 58c6fd9

Browse files
committed
Generate pages and package them
1 parent e24154f commit 58c6fd9

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.github/workflows/doxygen.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Doxygen
22

33
on:
44
push:
5-
branches:
6-
- main
75

86
permissions:
97
contents: read
@@ -16,12 +14,33 @@ jobs:
1614
runs-on: ubuntu-latest
1715

1816
steps:
19-
- uses: actions/checkout@v4
20-
- name: Doxygen documentation generation
21-
uses: mattnotmitt/doxygen-action@v1
22-
- name: Deploy
23-
uses: peaceiris/actions-gh-pages@v3
24-
with:
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
publish_dir: ./dist/html
27-
force_orphan: true
17+
- uses: actions/checkout@v4
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y doxygen
22+
- name: Create repo files
23+
run: |
24+
doxygen ./Doxyfile
25+
cd dist/html
26+
tar -cvf ../../pages.tar ./*
27+
- name: Upload repo artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: github-pages
31+
path: pages.tar
32+
33+
publish_repo:
34+
if: contains(github.ref,'refs/heads/main')
35+
needs: [build]
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
41+
steps:
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v5
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)