Merge pull request #830 from github/copilot/fix-github-actions-workflow-again

Copilot/fix GitHub actions workflow again
This commit is contained in:
Aaron Powell
2026-02-27 11:06:39 +11:00
committed by GitHub
2 changed files with 7 additions and 15 deletions

View File

@@ -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

View File

@@ -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 }}