From fdb88ae331520773c854760bd6b97ab6523c64bd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:19:08 +0000 Subject: [PATCH 1/7] Initial plan From 43fb6193bd63956e1fb42f168b3296352f2f9a5a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:56:58 +0000 Subject: [PATCH 2/7] Fix release.yml: use gh-pages branch instead of deploy-pages action Co-authored-by: hemarina <104857065+hemarina@users.noreply.github.com> --- .github/workflows/release.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebc07a9e..36ef4afe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,22 +5,16 @@ on: workflow_dispatch: permissions: - id-token: write - contents: read - pages: write - deployments: write + contents: write concurrency: - group: pages + group: gh-pages-deployment cancel-in-progress: true jobs: deploy: name: Deploy Site To GitHub Pages runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -37,10 +31,8 @@ jobs: working-directory: website run: | npm test - - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./website/build - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: website/build + branch: gh-pages \ No newline at end of file From 7d9868b7707356aef208ed09585a2cd86508889a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 18:24:55 +0000 Subject: [PATCH 3/7] Revert to upload-pages-artifact@v4 + deploy-pages@v4, add sync-gh-pages workflow Co-authored-by: hemarina <104857065+hemarina@users.noreply.github.com> --- .github/workflows/release.yml | 20 ++++++++++++++------ .github/workflows/sync-gh-pages.yml | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/sync-gh-pages.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36ef4afe..8fc5a294 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,16 +5,22 @@ on: workflow_dispatch: permissions: - contents: write + id-token: write + contents: read + pages: write + deployments: write concurrency: - group: gh-pages-deployment + group: pages cancel-in-progress: true jobs: deploy: name: Deploy Site To GitHub Pages runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -31,8 +37,10 @@ jobs: working-directory: website run: | npm test - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v4 with: - folder: website/build - branch: gh-pages \ No newline at end of file + path: ./website/build + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.github/workflows/sync-gh-pages.yml b/.github/workflows/sync-gh-pages.yml new file mode 100644 index 00000000..5aa540ae --- /dev/null +++ b/.github/workflows/sync-gh-pages.yml @@ -0,0 +1,21 @@ +name: Sync Main to GH-Pages + +# Syncs the main branch to gh-pages so that the release workflow +# can be triggered from gh-pages (required by environment protection rules). +on: + workflow_dispatch: + +permissions: + contents: write + +jobs: + sync: + name: Sync Main to GH-Pages Branch + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: main + fetch-depth: 0 + - name: Push main to gh-pages + run: git push origin main:gh-pages --force From 2cf9874e6f0125ad31cf597e21799a66c0e0601c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Mar 2026 19:02:24 +0000 Subject: [PATCH 4/7] Integrate sync-gh-pages into release.yml as first job before deploy Co-authored-by: hemarina <104857065+hemarina@users.noreply.github.com> --- .github/workflows/release.yml | 11 ++++++++++- .github/workflows/sync-gh-pages.yml | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8fc5a294..37b84f98 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: permissions: id-token: write - contents: read + contents: write pages: write deployments: write @@ -15,14 +15,23 @@ concurrency: cancel-in-progress: true jobs: + sync: + name: Sync Main to GH-Pages + uses: ./.github/workflows/sync-gh-pages.yml + permissions: + contents: write + deploy: name: Deploy Site To GitHub Pages + needs: sync runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4 + with: + ref: gh-pages - uses: actions/setup-node@v4 with: node-version: 20 diff --git a/.github/workflows/sync-gh-pages.yml b/.github/workflows/sync-gh-pages.yml index 5aa540ae..8f9e999e 100644 --- a/.github/workflows/sync-gh-pages.yml +++ b/.github/workflows/sync-gh-pages.yml @@ -4,6 +4,7 @@ name: Sync Main to GH-Pages # can be triggered from gh-pages (required by environment protection rules). on: workflow_dispatch: + workflow_call: permissions: contents: write From 0377f5f988668750eb716235460c89fe3bc9e36c Mon Sep 17 00:00:00 2001 From: hemarina <104857065+hemarina@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:24:21 -0700 Subject: [PATCH 5/7] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37b84f98..0c2543c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: permissions: id-token: write - contents: write + contents: read pages: write deployments: write From 86ecb48f8f8b1d018428d73e23c37e46fea61c92 Mon Sep 17 00:00:00 2001 From: hemarina <104857065+hemarina@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:24:51 -0700 Subject: [PATCH 6/7] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c2543c6..27873596 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: gh-pages + ref: ${{ needs.sync.outputs.synced_sha }} - uses: actions/setup-node@v4 with: node-version: 20 From ba91514ec67534b61483b0e726d3cfab274b8980 Mon Sep 17 00:00:00 2001 From: hemarina <104857065+hemarina@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:25:17 -0700 Subject: [PATCH 7/7] Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/sync-gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-gh-pages.yml b/.github/workflows/sync-gh-pages.yml index 8f9e999e..d6128279 100644 --- a/.github/workflows/sync-gh-pages.yml +++ b/.github/workflows/sync-gh-pages.yml @@ -19,4 +19,4 @@ jobs: ref: main fetch-depth: 0 - name: Push main to gh-pages - run: git push origin main:gh-pages --force + run: git push origin main:gh-pages --force-with-lease