From d4101b13ee8a8183d8e502764b0034c73476429d Mon Sep 17 00:00:00 2001 From: James Gomez Date: Wed, 2 Dec 2026 12:47:44 -0800 Subject: [PATCH] ci(pages): split build and deploy jobs to avoid artifact metadata race --- .github/workflows/docs-pages.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs-pages.yml b/.github/workflows/docs-pages.yml index a80844f..b4666e9 100644 --- a/.github/workflows/docs-pages.yml +++ b/.github/workflows/docs-pages.yml @@ -24,18 +24,12 @@ concurrency: cancel-in-progress: true jobs: - build-and-deploy: - name: Build & Deploy GitHub Pages + build: + name: Build GitHub Pages Site runs-on: ubuntu-latest timeout-minutes: 10 permissions: - actions: read contents: read - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: - name: Checkout Repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 @@ -61,6 +55,23 @@ jobs: with: path: _site + deploy: + name: Deploy to GitHub Pages + needs: build + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + actions: read + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Wait for Artifact Metadata Propagation + run: sleep 10 + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5