File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # ABOUTME: GitHub Actions workflow that packages the skill for upload to Claude.ai.
2+ # ABOUTME: Creates a ZIP artifact on every push to main and a GitHub Release when the version in SKILL.md increases.
3+
4+ name : Package Skill
5+
6+ on :
7+ push :
8+ branches : [main]
9+ workflow_dispatch :
10+
11+ jobs :
12+ package :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+
23+ - name : Read version from SKILL.md
24+ id : version
25+ run : |
26+ version=$(grep '^version:' SKILL.md | sed 's/version:[[:space:]]*//')
27+ echo "version=$version" >> "$GITHUB_OUTPUT"
28+ echo "tag=v$version" >> "$GITHUB_OUTPUT"
29+
30+ - name : Check if tag exists
31+ id : tag_check
32+ run : |
33+ if git rev-parse "refs/tags/${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
34+ echo "exists=true" >> "$GITHUB_OUTPUT"
35+ else
36+ echo "exists=false" >> "$GITHUB_OUTPUT"
37+ fi
38+
39+ - name : Package skill
40+ run : |
41+ zip -r temporal-developer-skill.zip \
42+ SKILL.md \
43+ references/ \
44+ -x '*.DS_Store'
45+
46+ - name : Upload artifact
47+ uses : actions/upload-artifact@v4
48+ with :
49+ name : temporal-developer-skill
50+ path : temporal-developer-skill.zip
51+
52+ - name : Create release
53+ if : steps.tag_check.outputs.exists == 'false'
54+ uses : softprops/action-gh-release@v2
55+ with :
56+ tag_name : ${{ steps.version.outputs.tag }}
57+ name : ${{ steps.version.outputs.tag }}
58+ files : temporal-developer-skill.zip
59+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments