From 1c8b7acb51af691149d37d806a67e53ec557571d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Tue, 24 Nov 2026 08:14:23 +0100 Subject: [PATCH] ci: deploy docs in a separate job The deploy step lists the run artifacts right after the upload is finalized and intermittently gets none back, failing the docs workflow. --- .github/workflows/docs.yaml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 0ab263d44e..9bb2c10690 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -11,12 +11,8 @@ on: jobs: build: - environment: - name: github-pages permissions: - contents: write - pages: write - id-token: write + contents: read runs-on: ubuntu-latest steps: @@ -37,14 +33,25 @@ jobs: INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }} SEGMENT_TOKEN: ${{ secrets.SEGMENT_TOKEN }} - - name: Set up GitHub Pages - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: path: ./build + # separate job, the artifact listing lags behind the upload and deploying right after it fails intermittently + deploy: + needs: build + environment: + name: github-pages + permissions: + pages: write + id-token: write + runs-on: ubuntu-latest + + steps: + - name: Set up GitHub Pages + uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 + - name: Deploy artifact to GitHub Pages uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1