Skip to content

Commit 346a6c1

Browse files
committed
Fix build script
Signed-off-by: Julien Nioche <julien@digitalpebble.com>
1 parent a8bfb3b commit 346a6c1

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/package.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,10 @@ jobs:
3030
sparse-checkout-cone-mode: false
3131

3232
- name: Validate and package
33-
# The packager imports `quick_validate` as a sibling module, so we
34-
# invoke the script with its full path. First arg = skill folder,
35-
# second = output directory. Folder name must match the skill's
36-
# `name` frontmatter field, so the artefact is named correctly.
33+
env:
34+
PYTHONPATH: _anthropic_skills/skills/skill-creator
3735
run: |
38-
python "_anthropic_skills/skills/skill-creator/scripts/package_skill.py" \
39-
"$GITHUB_WORKSPACE/spruce-sql-advisor" \
40-
"$GITHUB_WORKSPACE"
36+
python -m scripts.package_skill ./spruce-sql-advisor .
4137
4238
- name: Upload artefact
4339
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ Thumbs.db
1515
.idea/
1616
.vscode/
1717
*.swp
18+
19+
_anthropic_skills/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ git clone --depth 1 --filter=blob:none --sparse \
5353
https://github.com/anthropics/skills _anthropic_skills
5454
git -C _anthropic_skills sparse-checkout set skills/skill-creator/scripts
5555

56-
python _anthropic_skills/skills/skill-creator/scripts/package_skill.py \
57-
./spruce-sql-advisor .
56+
PYTHONPATH=_anthropic_skills/skills/skill-creator \
57+
python3 -m scripts.package_skill ./spruce-sql-advisor .
5858
```
5959

6060
## Licence

0 commit comments

Comments
 (0)