From 4223cf3d114d0c8fd4190db7852ebe4490574bfc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 23:32:17 +0000 Subject: [PATCH 1/3] Initial plan From 17c76fede5a6060c2de761ad067d79ab8b2155db Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 23:34:54 +0000 Subject: [PATCH 2/3] fix: trigger deploy-website workflow via workflow_run instead of push Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> --- .github/workflows/deploy-website.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index df7ef9821..e4e765d91 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -4,19 +4,13 @@ name: Deploy Website to GitHub Pages on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - paths: - - "website/**" - - "agents/**" - - "prompts/**" - - "instructions/**" - - "skills/**" - - "plugins/**" - - "cookbook/**" - - "eng/generate-website-data.mjs" - - ".github/workflows/deploy-website.yml" + # Runs after the Publish to main workflow completes successfully. + # Note: pushes made by GITHUB_TOKEN do not trigger push-based workflows, + # so workflow_run is required to chain off the publish workflow. + workflow_run: + workflows: ["Publish to main"] + types: + - completed # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -36,6 +30,7 @@ concurrency: jobs: # Build job build: + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: - name: Checkout From 8161d1415d2769e228686009fdd868c3b6f36e1b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 00:01:00 +0000 Subject: [PATCH 3/3] refactor: publish.yml dispatches deploy-website instead of workflow_run Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> --- .github/workflows/deploy-website.yml | 11 +---------- .github/workflows/publish.yml | 6 ++++++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index e4e765d91..35210e7fc 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -4,15 +4,7 @@ name: Deploy Website to GitHub Pages on: - # Runs after the Publish to main workflow completes successfully. - # Note: pushes made by GITHUB_TOKEN do not trigger push-based workflows, - # so workflow_run is required to chain off the publish workflow. - workflow_run: - workflows: ["Publish to main"] - types: - - completed - - # Allows you to run this workflow manually from the Actions tab + # Triggered manually from the Actions tab, or dispatched by the Publish to main workflow. workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages @@ -30,7 +22,6 @@ concurrency: jobs: # Build job build: - if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a33c8f1aa..ec288decb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,7 @@ concurrency: permissions: contents: write + actions: write jobs: publish: @@ -52,3 +53,8 @@ jobs: git add -f plugins/*/agents/ plugins/*/skills/ git commit -m "chore: publish from staged" --allow-empty git push origin HEAD:main --force + + - name: Dispatch website deployment + run: gh workflow run deploy-website.yml --ref main + env: + GH_TOKEN: ${{ github.token }}