File tree Expand file tree Collapse file tree 1 file changed +11
-24
lines changed
Expand file tree Collapse file tree 1 file changed +11
-24
lines changed Original file line number Diff line number Diff line change @@ -2,48 +2,35 @@ name: Update Doxygen Page
22
33on :
44 push :
5- branches :
6- - master
5+ branches :
6+ - develop
77
88jobs :
99 doxygen :
1010 runs-on : ubuntu-latest
1111 permissions :
12- contents : write
12+ contents : read
13+ pages : write
14+ id-token : write
1315
1416 steps :
1517
1618 - name : Install Doxygen
1719 run : |
18- sudo apt-add-repository universe
1920 sudo apt-get update
2021 sudo apt-get install doxygen
2122
2223 - name : Checkout Original
2324 uses : actions/checkout@v4
24- with :
25- path : original
2625
2726 - name : Run Doxygen
28- working-directory : original
2927 run : doxygen
3028
31- - name : Checkout Pages
32- uses : actions/checkout@v4
29+ - name : Upload artifact
30+ uses : actions/upload-pages-artifact@v3
3331 with :
34- path : pages
32+ path : ./html
3533
36- - name : Set up pages directory
37- working-directory : pages
38- run : |
39- git checkout --orphan gh-pages
40- git rm -rf .
41- cp -r ../original/html/. .
42- - name : Update Github
43- working-directory : pages
44- run : |
45- git config user.name "GitHub Actions Bot"
46- git config user.email "<>"
47- git add .
48- git commit -m "Update page from action"
49- git push -f origin gh-pages
34+ - name : Deploy to GitHub Pages
35+ id : deployment
36+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments