Update doxygen-gh-pages.yml

This commit is contained in:
Gabriel Koppenstein authored and GitHub committed 2024-11-26 17:21:48 +01:00
1 parent cf79990b51
commit 3f7f092b2c
1 file changed
+35 -16
+35 -16
View File
@@ -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
@@ -32,10 +27,34 @@ jobs:
# Working directory # Working directory
working-directory: "." # default is . working-directory: "." # default is .
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with: deploy-main:
github_token: ${{ secrets.GITHUB_TOKEN }} if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch
# Default Doxyfile build documentation to html directory. runs-on: ubuntu-latest
# Change the directory if changes in Doxyfile needs: doxy-build
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)