-
Notifications
You must be signed in to change notification settings - Fork 30
49 lines (39 loc) · 1.42 KB
/
Copy pathplugins.yml
File metadata and controls
49 lines (39 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build plugins branch
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: |
uv sync --all-groups
uv tool install -e .
- name: Generate plugin agent files
run: uv run python scripts/sync_agents.py
- name: Generate workflow skills
run: factory workflow export-skills --output-dir skills
- name: Copy skills to .agents/skills
run: cp -r skills/ .agents/skills/
- name: Push to plugins branch (and legacy plugin branch)
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -B plugins
git add -f agents/ .agents/skills/
git diff --cached --quiet && echo "No changes" && exit 0
git commit -m "build: generate plugin agent files from $(git rev-parse --short main)"
git push --force origin plugins
# Backward compatibility: mirror to the legacy 'plugin' branch.
# Remove once downstream marketplace installs have migrated to 'plugins'.
git push --force origin plugins:plugin