From be5186d2baf779c7d30e107950facdc9e3c480c1 Mon Sep 17 00:00:00 2001 From: Mamadou S Diallo Date: Mon, 3 Feb 2025 10:55:39 -0500 Subject: [PATCH] Fixed and optimized github workflows --- .github/workflows/pages.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d4a285c7..38c22cc5 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -7,7 +7,7 @@ on: permissions: contents: read - pages: write + pages: write id-token: write concurrency: @@ -23,12 +23,25 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v4 + + - name: "Debug: Check files before build" + run: ls -R ./docs || echo "❌ No docs directory found!" + - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v2 with: - path: ./docs/docs_site + path: ./docs/docs_site + name: github-pages + + - name: "Debug: Verify uploaded artifact exists" + run: | + ls -lh ./docs/docs_site || echo "❌ Build output missing!" + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2 + with: + artifact_name: github-pages