File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 83
83
run : |
84
84
cd build
85
85
make doc
86
- make -j 4
87
- sudo make install
86
+ make doxy
88
87
89
88
- name : Initialize mandatory git config
90
89
run : |
@@ -107,6 +106,24 @@ jobs:
107
106
git fetch origin
108
107
git rebase origin/gh-pages
109
108
git push origin gh-pages
109
+ git checkout @{-2}
110
+
111
+ - name : Update Developers Documentation
112
+ run : |
113
+ if [[ "${{ env.BRANCH }}" == "main" ]]; then
114
+ FOLDER_NAME="main"
115
+ elif [[ "${{ env.BRANCH }}" == "develop" ]]; then
116
+ FOLDER_NAME="dev"
117
+ fi
118
+ git checkout gh-pages
119
+ rm -rf doxy/${FOLDER_NAME}
120
+ cp -r build/doxygen/html doxy/${FOLDER_NAME}
121
+ git add doxy/${FOLDER_NAME}
122
+ git diff-index --quiet HEAD || git commit -m "Update developers documentation for ${PROJECT_VERSION} (${{ env.BRANCH }}): commit ${{ env.GIT_HASH }}"
123
+ git fetch origin
124
+ git rebase origin/gh-pages
125
+ git push origin gh-pages
126
+ git checkout @{-1}
110
127
111
128
env :
112
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
129
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -109,19 +109,6 @@ jobs:
109
109
git push origin gh-pages
110
110
git checkout @{-2}
111
111
112
- - name : Update Developers Documentation
113
- if : ${{ env.BRANCH == 'main' }}
114
- run : |
115
- git checkout gh-pages
116
- rm -rf doxy/main
117
- cp -r build/doxygen/html doxy/main
118
- git add doxy/main
119
- git diff-index --quiet HEAD || git commit -m "Update developers documentation for ${PROJECT_VERSION} (tag ${TAG_NAME})"
120
- git fetch origin
121
- git rebase origin/gh-pages
122
- git push origin gh-pages
123
- git checkout @{-1}
124
-
125
112
- name : Download Assets
126
113
run : |
127
114
wget -c https://github.com/${{ github.repository }}/archive/${TAG_NAME}.zip
@@ -165,4 +152,4 @@ jobs:
165
152
${{ github.event.repository.name }}-${{ env.PROJECT_VERSION }}.tar.gz
166
153
167
154
env :
168
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments