gnucash stable: Support both coverage and documentation

John Ralls jralls at code.gnucash.org
Thu Jul 16 15:02:53 EDT 2026


Updated	 via  https://github.com/Gnucash/gnucash/commit/0fe7389e (commit)
	from  https://github.com/Gnucash/gnucash/commit/36bd906b (commit)



commit 0fe7389ed22e3ba297c39225b814e8b924d172ee
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Jul 16 11:21:44 2026 -0700

    Support both coverage and documentation
    
    The previous version overwrote coverage with documentation.

diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index fff6d095a9..cfdb54a8f5 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -41,30 +41,17 @@ jobs:
         if: success()
         run: |
           mkdir build/github-pages
-          mv build/Coverage-HTML build/github-pages/
+          mv build/Coverage-HTML build/github-pages/Coverage
           chmod -v -R +rX "build/github-pages" | while read line; do
             echo "::warning title=Invalid file permissions automatically fixed::$line"
           done
       - name: Upload pages
-        uses: actions/upload-pages-artifact at v5
+        uses: actions/upload-artifact at v7
         if: success()
         with:
-          path: ${{ github.workspace }}/build/github-pages
+          name: coverage-build
+          path: ${{ github.workspace }}/build/github-pages/Coverage
 
-  deploy-coverage:
-    needs: coverage
-    if: github.repository == 'gnucash/gnucash'
-    permissions:
-      pages: write
-      id-token: write
-    environment:
-      name: github-pages
-      url: ${{ steps.deployment.outputs.page_url }}
-    runs-on: ubuntu-latest
-    steps:
-      - name: Publish
-        id: deployment
-        uses: actions/deploy-pages at v5
 
   programming-docs:
     runs-on: ubuntu-latest
@@ -101,13 +88,17 @@ jobs:
             echo "::warning title=Invalid file permissions automatically fixed::$line"
           done
       - name: Upload pages
-        uses: actions/upload-pages-artifact at v5
+        uses: actions/upload-artifact at v7
         if: success()
         with:
-          path: ${{ github.workspace }}/build/github-pages
+          name: documentation-build
+          path: ${{ github.workspace }}/build/github-pages/Documentation
 
   deploy-docs:
-    needs: programming-docs
+    needs: [
+           coverage,
+           programming-docs
+           ]
     if: github.repository == 'gnucash/gnucash'
     permissions:
       pages: write
@@ -117,6 +108,21 @@ jobs:
       url: ${{ steps.deployment.outputs.page_url }}
     runs-on: ubuntu-latest
     steps:
+      - uses: actions/configure-pages at v6
+      - name: download-coverage
+        uses: actions/download-artifact at v8
+        with:
+           name: coverage-build
+           path: github-pages/Coverage
+      - name: download-documentation
+        uses: actions/download-artifact at v8
+        with:
+           name: documentation-build
+           path: github-pages/Documentation
+      - name: upload pages
+        uses: actions/upload-pages-artifact at v5
+        with:
+           path: github-pages
       - name: Publish
         id: deployment
         uses: actions/deploy-pages at v5



Summary of changes:
 .github/workflows/coverage.yml | 46 ++++++++++++++++++++++++------------------
 1 file changed, 26 insertions(+), 20 deletions(-)



More information about the gnucash-changes mailing list