diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 3cf88013..b826abb0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -44,6 +44,8 @@ jobs: - name: Configure Pages uses: actions/configure-pages@v6 + with: + enablement: true - name: Upload artifact uses: actions/upload-pages-artifact@v5 diff --git a/test/pages-workflow.test.ts b/test/pages-workflow.test.ts index 21f3514c..3052db86 100644 --- a/test/pages-workflow.test.ts +++ b/test/pages-workflow.test.ts @@ -6,6 +6,7 @@ test("Pages reruns upload and deploy a run-attempt-scoped artifact", () => { const workflow = readFileSync(".github/workflows/pages.yml", "utf8").replace(/\r\n/g, "\n"); assert.match(workflow, /PAGES_ARTIFACT_NAME: github-pages-\$\{\{ github\.run_attempt \}\}/); + assert.match(workflow, /uses: actions\/configure-pages@v6\n\s+with:\n\s+enablement: true/); assert.equal(workflow.match(/\$\{\{ env\.PAGES_ARTIFACT_NAME \}\}/g)?.length, 2); assert.match( workflow,