Update doxygen-gh-pages.yml
This commit is contained in:
1 parent
cf79990b51
commit
3f7f092b2c
1 file changed
+35
-16
@@ -1,22 +1,17 @@
|
|||||||
# This is a basic workflow to help you get started with Actions
|
|
||||||
|
|
||||||
name: Doxygen Action
|
name: Doxygen Action
|
||||||
|
|
||||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
||||||
# events but only for the master branch
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches:
|
||||||
pull_request:
|
- dev # Trigger on push to 'dev' branch
|
||||||
branches: [ "main" ]
|
- main # Trigger on push to 'main' branch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
build:
|
doxy-build:
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
@@ -31,11 +26,35 @@ jobs:
|
|||||||
doxyfile-path: "./Doxyfile" # default is ./Doxyfile
|
doxyfile-path: "./Doxyfile" # default is ./Doxyfile
|
||||||
# Working directory
|
# Working directory
|
||||||
working-directory: "." # default is .
|
working-directory: "." # default is .
|
||||||
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
deploy-main:
|
||||||
with:
|
if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
runs-on: ubuntu-latest
|
||||||
# Default Doxyfile build documentation to html directory.
|
needs: doxy-build
|
||||||
# Change the directory if changes in Doxyfile
|
|
||||||
publish_dir: ./html
|
steps:
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# Default Doxyfile build documentation to html directory.
|
||||||
|
# Change the directory if changes in Doxyfile
|
||||||
|
publish_dir: ./html
|
||||||
|
publish_branch: gh-pages
|
||||||
|
|
||||||
|
deploy-dev:
|
||||||
|
if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: doxy-build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# Default Doxyfile build documentation to html directory.
|
||||||
|
# Change the directory if changes in Doxyfile
|
||||||
|
publish_dir: ./html
|
||||||
|
publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case)
|
||||||
Reference in new issue
Block a user