mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
ci: update GitHub Actions publish workflow to automatically create GitHub Releases (#1803)
This commit is contained in:
parent
daf9ae81d8
commit
d8ab111043
2 changed files with 31 additions and 0 deletions
5
.changeset/automatic-releases-publish.md
Normal file
5
.changeset/automatic-releases-publish.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Update GitHub Actions workflow to automatically create GitHub Releases
|
||||
26
.github/workflows/marketplace-publish.yml
vendored
26
.github/workflows/marketplace-publish.yml
vendored
|
|
@ -62,3 +62,29 @@ jobs:
|
|||
current_package_version=$(node -p "require('./package.json').version")
|
||||
npm run publish:marketplace
|
||||
echo "Successfully published version $current_package_version to VS Code Marketplace"
|
||||
|
||||
- name: Create GitHub Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
current_package_version=$(node -p "require('./package.json').version")
|
||||
|
||||
# Extract changelog for current version
|
||||
changelog_content=$(awk -v ver="## [${current_package_version}]" '
|
||||
$0 ~ ver {flag=1; next}
|
||||
/^## \[/ {if (flag) exit}
|
||||
flag {print}
|
||||
' CHANGELOG.md)
|
||||
|
||||
# If changelog extraction failed, use a default message
|
||||
if [ -z "$changelog_content" ]; then
|
||||
changelog_content="Release v${current_package_version}"
|
||||
fi
|
||||
|
||||
# Create release with changelog content
|
||||
gh release create "v${current_package_version}" \
|
||||
--title "Release v${current_package_version}" \
|
||||
--notes "$changelog_content" \
|
||||
--target ${{ env.GIT_REF }} \
|
||||
bin/roo-cline-${current_package_version}.vsix
|
||||
echo "Successfully created GitHub Release v${current_package_version}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue