Update doxygen-gh-pages.yml
This commit is contained in:
1 parent
3f7f092b2c
commit
12b45b9da3
1 file changed
+19
-1
@@ -27,7 +27,11 @@ jobs:
|
|||||||
# Working directory
|
# Working directory
|
||||||
working-directory: "." # default is .
|
working-directory: "." # default is .
|
||||||
|
|
||||||
|
- name: Upload doxygen files as artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: doxygen_files
|
||||||
|
path: html/
|
||||||
|
|
||||||
deploy-main:
|
deploy-main:
|
||||||
if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch
|
if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch
|
||||||
@@ -35,6 +39,12 @@ jobs:
|
|||||||
needs: doxy-build
|
needs: doxy-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Download doxygen files artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: doxygen_files
|
||||||
|
path: html/
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
@@ -43,6 +53,7 @@ jobs:
|
|||||||
# Change the directory if changes in Doxyfile
|
# Change the directory if changes in Doxyfile
|
||||||
publish_dir: ./html
|
publish_dir: ./html
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
||||||
|
destination_dir: html
|
||||||
|
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch
|
if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch
|
||||||
@@ -50,6 +61,12 @@ jobs:
|
|||||||
needs: doxy-build
|
needs: doxy-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Download doxygen files artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: doxygen_files
|
||||||
|
path: html/
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
@@ -58,3 +75,4 @@ jobs:
|
|||||||
# Change the directory if changes in Doxyfile
|
# Change the directory if changes in Doxyfile
|
||||||
publish_dir: ./html
|
publish_dir: ./html
|
||||||
publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case)
|
publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case)
|
||||||
|
destination_dir: html
|
||||||
Reference in new issue
Block a user