From f3c7299f9045eaa5114b0bd3aa68d8a57d1bc51d Mon Sep 17 00:00:00 2001 From: John Ajera <37360952+jajera@users.noreply.github.com> Date: Sat, 25 Jul 2026 15:46:07 +1200 Subject: [PATCH] ci: call github-pages-deploy reusable for Pages Replace inline checkout/configure-pages/upload/deploy steps with actionsforge github-pages-deploy so action pins stay central. --- .github/workflows/pages.yml | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d7a5415..9aceeed 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -5,32 +5,16 @@ on: workflows: ["Update Repository Data"] types: - completed - + workflow_dispatch: permissions: contents: read pages: write id-token: write -concurrency: - group: "pages" - cancel-in-progress: false - jobs: deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: './docs' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' + uses: actionsforge/actions/.github/workflows/github-pages-deploy.yml@main + with: + path: ./docs