Browse Source

Fix github action

Suren A. Chilingaryan 11 months ago
parent
commit
54d69ea09f
4 changed files with 38 additions and 8 deletions
  1. 28 4
      .github/workflows/doxygen.yml
  2. 2 0
      .gitignore
  3. 4 2
      docs/Doxyfile
  4. 4 2
      docs/Doxyfile.in

+ 28 - 4
.github/workflows/doxygen.yml

@@ -1,4 +1,28 @@
-- name: Doxygen Action
-  uses: mattnotmitt/doxygen-action@1.9.5
-  working-directory: docs
-  doxyfile-path: 'Doxyfile'
+name: Documentation
+
+on:
+  push:
+    branches: [ master ]
+
+jobs:
+  build-documentation:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v3
+
+    - name: Doxygen Action
+      uses: mattnotmitt/doxygen-action@1.9.5
+      with:
+          doxyfile-path: './Doxyfile'
+          working-directory: 'docs/'
+    
+    - name: GH Pages Deployment
+      uses: peaceiris/actions-gh-pages@v3
+      with:
+        github_token: ${{ secrets.GITHUB_TOKEN }}
+        publish_dir: './docs/html/'
+        enable_jekyll: false
+        allow_empty_commit: false
+        force_orphan: true
+        publish_branch: gh-pages

+ 2 - 0
.gitignore

@@ -35,6 +35,8 @@ config.h
 pcitool/pci
 version.h
 #Doxyfile
+CMakeDoxyfile.in
+CMakeDoxygenDefaults.cmake
 html
 pcilib/build.h
 build.h

+ 4 - 2
docs/Doxyfile

@@ -58,7 +58,8 @@ PROJECT_LOGO           =
 # entered, it will be relative to the location where doxygen was started. If
 # left blank the current directory will be used.
 
-OUTPUT_DIRECTORY       = /home/csa/cam0/pcitool/docs
+#OUTPUT_DIRECTORY       = /home/csa/cam0/pcitool/docs
+OUTPUT_DIRECTORY       =
 
 # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
 # directories (in 2 levels) under the output directory of each output format and
@@ -759,7 +760,8 @@ WARN_LOGFILE           =
 # spaces.
 # Note: If this tag is empty the current directory is searched.
 
-INPUT                  = /home/csa/cam0/pcitool/pcilib/
+#INPUT                  = /home/csa/cam0/pcitool/pcilib/
+INPUT                  = ../pcilib/
 
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses

+ 4 - 2
docs/Doxyfile.in

@@ -58,7 +58,8 @@ PROJECT_LOGO           =
 # entered, it will be relative to the location where doxygen was started. If
 # left blank the current directory will be used.
 
-OUTPUT_DIRECTORY       = ${PCILIB_DOC_DIR}
+#OUTPUT_DIRECTORY       = ${PCILIB_DOC_DIR}
+OUTPUT_DIRECTORY       =
 
 # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
 # directories (in 2 levels) under the output directory of each output format and
@@ -759,7 +760,8 @@ WARN_LOGFILE           =
 # spaces.
 # Note: If this tag is empty the current directory is searched.
 
-INPUT                  = ${CMAKE_SOURCE_DIR}/pcilib/
+#INPUT                  = ${CMAKE_SOURCE_DIR}/pcilib/
+INPUT                  = ../pcilib/
 
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses