Ver Fonte

Modify Doxygen workflow triggers and deployment condition

Commented out the push and pull_request triggers for the Doxygen workflow and simplified the condition for deployment to GitHub Pages.
Anatoli Arkhipenko há 5 meses atrás
pai
commit
1bedf8e3d5
1 ficheiros alterados com 14 adições e 14 exclusões
  1. 14 14
      .github/workflows/doxygen.yml

+ 14 - 14
.github/workflows/doxygen.yml

@@ -1,18 +1,18 @@
 name: Generate Documentation
 
 on:
-  push:
-    branches: [ master, main ]
-    paths:
-      - 'src/**'
-      - 'extras/**'
-      - '.github/workflows/doxygen.yml'
-  pull_request:
-    branches: [ master, main ]
-    paths:
-      - 'src/**'
-      - 'extras/**'
-      - '.github/workflows/doxygen.yml'
+#  push:
+#    branches: [ master, main ]
+#    paths:
+#      - 'src/**'
+#      - 'extras/**'
+#      - '.github/workflows/doxygen.yml'
+#  pull_request:
+#    branches: [ master, main ]
+#    paths:
+#      - 'src/**'
+#      - 'extras/**'
+#      - '.github/workflows/doxygen.yml'
   workflow_dispatch:
 
 jobs:
@@ -272,7 +272,7 @@ jobs:
           retention-days: 30
 
       - name: Deploy to GitHub Pages
-        if: github.event_name == 'push' && github.ref == 'refs/heads/master'
+        if: github.ref == 'refs/heads/master'
         uses: peaceiris/actions-gh-pages@v3
         with:
           deploy_key: ${{ secrets.DEPLOY_KEY }}
@@ -304,4 +304,4 @@ jobs:
           echo "- 📁 [File Index](./doc/html/files.html)" >> $GITHUB_STEP_SUMMARY
           echo "- 🔍 [Search](./doc/html/search.html)" >> $GITHUB_STEP_SUMMARY
           echo "" >> $GITHUB_STEP_SUMMARY
-          echo "*Documentation artifacts have been uploaded and are available for download.*" >> $GITHUB_STEP_SUMMARY
+          echo "*Documentation artifacts have been uploaded and are available for download.*" >> $GITHUB_STEP_SUMMARY