Skip to content

Mobile MCP: let AI agents drive your iOS and Android apps. MCP server for simulators, emulators and real devices. Works with Claude Code, Codex, Cursor and any MCP client.

ci: create the GitHub release from CHANGELOG.md on tag push (#544)

Gil Megidish1025dd070fc9
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e3be784..3c69ca3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -71,7 +71,7 @@ jobs:
if: github.ref_type == 'tag'
permissions:
id-token: write
- contents: read
+ contents: write
steps:
- uses: actions/checkout@v5
@@ -127,6 +127,22 @@ jobs:
mcp-publisher publish
mcp-publisher logout
+ - name: Create or update GitHub release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ VERSION=${GITHUB_REF_NAME#v}
+ sed -n "/^## \[$VERSION\]/,/^## \[/{ /^## \[$VERSION\]/p; /^## \[/!p; }" CHANGELOG.md > release-notes.md
+ if [ ! -s release-notes.md ]; then
+ echo "::error::CHANGELOG.md has no section for $VERSION"
+ exit 1
+ fi
+ if gh release view "$GITHUB_REF_NAME" &>/dev/null; then
+ gh release edit "$GITHUB_REF_NAME" --notes-file release-notes.md
+ else
+ gh release create "$GITHUB_REF_NAME" --title "$GITHUB_REF_NAME" --notes-file release-notes.md
+ fi
+
publish_mcpb:
# macos runner (arm64) so sharp bundles darwin-arm64 native libs;
# the bundle targets macOS Apple Silicon to fit Smithery's 25MB cap