Skip to content

Commit 5f3da65

Browse files
committed
Enhance release workflow to include version tagging and GitHub release creation
- Updated release.yml to rename the workflow and add a step for tagging the new version. - Introduced a new job to create a GitHub release with generated release notes after version bumping. - Ensured the version bump step outputs the new version for use in subsequent steps.
1 parent ecdaf92 commit 5f3da65

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Version Bump
1+
name: Version Bump & Release
22

33
on:
44
push:
@@ -41,15 +41,27 @@ jobs:
4141
4242
- name: Bump patch version
4343
if: steps.guard.outputs.skip == 'false'
44+
id: bump
4445
run: |
4546
CURRENT=$(jq -r '.version' package.json)
4647
IFS='.' read -ra PARTS <<< "$CURRENT"
4748
NEW="${PARTS[0]}.${PARTS[1]}.$((${PARTS[2]} + 1))"
49+
echo "new=$NEW" >> "$GITHUB_OUTPUT"
4850
4951
jq --arg v "$NEW" '.version = $v' package.json > _tmp.json && mv _tmp.json package.json
5052
jq --arg v "$NEW" '.version = $v' manifests/academic-writer.json > _tmp.json && mv _tmp.json manifests/academic-writer.json
5153
jq --arg v "$NEW" '.version = $v | .plugins[0].version = $v' .claude-plugin/marketplace.json > _tmp.json && mv _tmp.json .claude-plugin/marketplace.json
5254
5355
git add package.json manifests/academic-writer.json .claude-plugin/marketplace.json
5456
git commit -m "chore: bump version to v${NEW}"
57+
git tag "v${NEW}"
5558
git push origin main
59+
git push origin "v${NEW}"
60+
61+
- name: Create GitHub Release
62+
if: steps.guard.outputs.skip == 'false'
63+
uses: softprops/action-gh-release@v2
64+
with:
65+
tag_name: "v${{ steps.bump.outputs.new }}"
66+
name: "v${{ steps.bump.outputs.new }}"
67+
generate_release_notes: true

0 commit comments

Comments
 (0)