diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index df7ef9821..35210e7fc 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -4,21 +4,7 @@ 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" - - # 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 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 }}