File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy Doxygen Documentation
1+ name : Deploy Documentation to GitHub Pages
22
33on :
44 push :
5- branches : [ main ]
6- pull_request :
7- branches : [ main ]
5+ branches : [ main, develope ]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : false
816
917jobs :
1018 build-and-deploy :
19+ name : Build and Deploy
1120 runs-on : ubuntu-latest
1221
1322 steps :
14- - name : Checkout
23+ - name : Checkout code
1524 uses : actions/checkout@v4
16-
17- - name : Setup Doxygen
18- uses : mattnotmitt/doxygen-action@v1.1.0
19-
20- - name : Generate Documentation
25+
26+ - name : Install dependencies
27+ run : |
28+ sudo apt-get update
29+ sudo apt-get install -y g++ make doxygen graphviz
30+
31+ - name : Generate documentation
2132 run : |
22- cd lab2
33+ echo "Current directory: $(pwd)"
34+ echo "Checking if Doxyfile exists:"
35+ ls -la Doxyfile
36+ echo "Doxygen version:"
37+ doxygen --version
2338 doxygen Doxyfile
24-
25- - name : Deploy to GitHub Pages
26- uses : peaceiris/actions-gh-pages@v3
27- if : github.ref == 'refs/heads/main'
39+
40+ - name : Setup Pages
41+ uses : actions/configure-pages@v4
42+
43+ - name : Upload artifact
44+ uses : actions/upload-pages-artifact@v3
2845 with :
29- github_token : ${{ secrets.GITHUB_TOKEN }}
30- publish_dir : ./lab2/docs/html
31- destination_dir : docs
46+ path : docs/html
47+
48+ - name : Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments