From 1a67a94a17208543df43c30f088c9043fddf89a5 Mon Sep 17 00:00:00 2001 From: Gavin Didrichsen Date: Mon, 4 Aug 2025 15:59:17 +0100 Subject: [PATCH] Simplify CI workflow and remove GitHub Pages deployment - Remove GitHub Pages deployment configuration and dependencies - Keep coverage generation with artifact upload for manual review - Remove test-gh-pages-publish branch trigger (no longer needed) - Simplify permissions (remove pages/id-token requirements) - Maintain coverage reporting via downloadable artifacts and PR comments Coverage reports are now available only as workflow artifacts, eliminating deployment complexity while preserving test coverage analysis. Signed-off-by: Gavin Didrichsen --- .github/workflows/ci.yml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6623910..7f5ae69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,7 @@ on: push: branches: [ main, - master, - test-gh-pages-publish # Special branch for testing GitHub Pages deployment + master ] pull_request: branches: [ main, master ] @@ -61,13 +60,6 @@ jobs: permissions: contents: read # Required for actions/checkout pull-requests: write # Required for commenting on PRs - pages: write # Required for GitHub Pages deployment - id-token: write # Required for GitHub Pages deployment (OIDC) - env: - # DEPLOY_CONDITION controls when GitHub Pages deployment occurs. - # Production: main, master branches deploy automatically - # Testing: test-gh-pages-publish branch allows safe deployment testing without affecting production - DEPLOY_CONDITION: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test-gh-pages-publish' }} steps: - uses: actions/checkout@v4 @@ -90,22 +82,6 @@ jobs: path: coverage/ retention-days: 30 - - name: Setup Pages - if: env.DEPLOY_CONDITION == 'true' - uses: actions/configure-pages@v4 - - - name: Upload Pages artifact - if: env.DEPLOY_CONDITION == 'true' - uses: actions/upload-pages-artifact@v3 - with: - path: coverage - - - name: Deploy to GitHub Pages - if: env.DEPLOY_CONDITION == 'true' - uses: actions/deploy-pages@v4 - with: - path: coverage - - name: Comment on PR with coverage report location if: github.event_name == 'pull_request' uses: actions/github-script@v7