Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(ci): give Pages uploads a full runner (#5924)

Cindy Zhanga16a82c2efed
diff --git a/.github/scripts/visual-gate/workflow-concurrency.test.mjs b/.github/scripts/visual-gate/workflow-concurrency.test.mjs
index 46f8eb3abb..bb95b2751a 100644
--- a/.github/scripts/visual-gate/workflow-concurrency.test.mjs
+++ b/.github/scripts/visual-gate/workflow-concurrency.test.mjs
@@ -370,6 +370,10 @@ describe('visual acceptance workflow concurrency', () => {
expect(prComment).toContain('uses: ./.github/workflows/deploy-preview.yml');
expect(pages).toContain("- 'PR Comment'");
expect(pages).toContain('workflow_dispatch:');
+ const deployJob = pages.slice(pages.indexOf(' deploy:'));
+ expect(deployJob).toContain('runs-on: ubuntu-latest');
+ expect(deployJob).toContain('timeout-minutes: 60');
+ expect(deployJob).not.toContain('runs-on: ubuntu-slim');
expect(pages).toContain('group: github-pages-deployment');
expect(pages).toContain('cancel-in-progress: false');
expect(pages).toContain('pages: write');
diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml
index a311b1babe..f0dc0bc8d1 100644
--- a/.github/workflows/pages-deploy.yml
+++ b/.github/workflows/pages-deploy.yml
@@ -59,8 +59,11 @@ jobs:
deploy:
needs: source
if: needs.source.outputs.workflow == 'true'
- runs-on: ubuntu-slim
- timeout-minutes: 20
+ # The published branch is several GiB and contains hundreds of thousands of
+ # files. ubuntu-slim has a 15-minute hard job limit, which can interrupt the
+ # archive created by upload-pages-artifact before it reaches the upload step.
+ runs-on: ubuntu-latest
+ timeout-minutes: 60
permissions:
contents: read
pages: write