File tree Expand file tree Collapse file tree 1 file changed +30
-11
lines changed
Expand file tree Collapse file tree 1 file changed +30
-11
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: Doxygen
22
33on :
44 push :
5- branches :
6- - main
75
86permissions :
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
You can’t perform that action at this time.
0 commit comments