mirror of
https://github.com/github/awesome-copilot.git
synced 2026-03-12 04:05:12 +00:00
Merge pull request #830 from github/copilot/fix-github-actions-workflow-again
Copilot/fix GitHub actions workflow again
This commit is contained in:
16
.github/workflows/deploy-website.yml
vendored
16
.github/workflows/deploy-website.yml
vendored
@@ -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
|
||||
|
||||
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user