Skip to content

Commit 3d4ea71

Browse files
Merge pull request #58 from temporalio/release
Add packaging workflow to release a public version and support Claude.ai Uploads
2 parents 6137e38 + e4afb09 commit 3d4ea71

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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

0 commit comments

Comments
 (0)