forked from lugassawan/swe-workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.15 KB
/
Copy pathrelease.yml
File metadata and controls
42 lines (36 loc) · 1.15 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
name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate JSON well-formedness
run: |
jq empty .claude-plugin/plugin.json
jq empty .claude-plugin/marketplace.json
- name: Verify tag matches manifest versions
run: |
TAG="${GITHUB_REF_NAME#v}"
PLUGIN_VER=$(jq -r .version .claude-plugin/plugin.json)
MKT_VER=$(jq -r '.plugins[0].version' .claude-plugin/marketplace.json)
if [ "$TAG" != "$PLUGIN_VER" ]; then
echo "::error::Tag ${GITHUB_REF_NAME} (=$TAG) does not match plugin.json version ($PLUGIN_VER)"
exit 1
fi
if [ "$TAG" != "$MKT_VER" ]; then
echo "::error::Tag ${GITHUB_REF_NAME} (=$TAG) does not match marketplace.json version ($MKT_VER)"
exit 1
fi
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" \
--title "$GITHUB_REF_NAME" \
--generate-notes