Skip to content

Commit e482e30

Browse files
committed
Updating developers documentation on push to dev & main
Removed make and sudo make install Developers documentation will not be updated on tag push
1 parent bfb46c0 commit e482e30

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/publish-users-doc.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ jobs:
8383
run: |
8484
cd build
8585
make doc
86-
make -j 4
87-
sudo make install
86+
make doxy
8887
8988
- name: Initialize mandatory git config
9089
run: |
@@ -107,6 +106,24 @@ jobs:
107106
git fetch origin
108107
git rebase origin/gh-pages
109108
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}
110127
111128
env:
112-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,6 @@ jobs:
109109
git push origin gh-pages
110110
git checkout @{-2}
111111
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-
125112
- name: Download Assets
126113
run: |
127114
wget -c https://github.com/${{ github.repository }}/archive/${TAG_NAME}.zip
@@ -165,4 +152,4 @@ jobs:
165152
${{ github.event.repository.name }}-${{ env.PROJECT_VERSION }}.tar.gz
166153
167154
env:
168-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
155+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)