3 Commits

Author SHA1 Message Date
3ecab8a9c6 1.0.0-alpha.5 2025-10-26 13:32:58 -04:00
9adc81705f fix: use Gitea API directly instead of action reference
Replace the gitea-release-action with direct API calls using curl.
This approach works on both GitHub (which runs this step conditionally)
and Gitea servers, using their compatible REST APIs.
2025-10-26 13:32:52 -04:00
b52d2597f8 1.0.0-alpha.4 2025-10-26 13:30:37 -04:00
4 changed files with 37 additions and 22 deletions

View File

@@ -110,25 +110,40 @@ jobs:
- name: Create draft release (Gitea)
if: github.server_url != 'https://github.com'
uses: https://gitea.com/actions/gitea-release-action@main
with:
files: |
main.js
manifest.json
styles.css
draft: true
title: ${{ github.ref_name }}
body: |
Release ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_VERSION="${GITHUB_REF#refs/tags/}"
## Changes
# Create release via API
RELEASE_ID=$(curl -X POST \
-H "Accept: application/json" \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/json" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases" \
-d "$(cat <<EOF
{
"tag_name": "$TAG_VERSION",
"name": "$TAG_VERSION",
"body": "Release $TAG_VERSION\n\n## Changes\n\n*Add release notes here before publishing*\n\n## Installation\n\n1. Download main.js, manifest.json, and styles.css\n2. Create a folder in .obsidian/plugins/obsidian-mcp-server/\n3. Copy the three files into the folder\n4. Reload Obsidian\n5. Enable the plugin in Settings → Community Plugins",
"draft": true,
"prerelease": false
}
EOF
)" | jq -r '.id')
*Add release notes here before publishing*
echo "Created release with ID: $RELEASE_ID"
## Installation
# Upload release assets
for file in main.js manifest.json styles.css; do
echo "Uploading $file..."
curl -X POST \
-H "Accept: application/json" \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary "@$file" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/$RELEASE_ID/assets?name=$file"
done
1. Download main.js, manifest.json, and styles.css
2. Create a folder in .obsidian/plugins/obsidian-mcp-server/
3. Copy the three files into the folder
4. Reload Obsidian
5. Enable the plugin in Settings → Community Plugins
echo "✅ Draft release created: $TAG_VERSION"
echo "Visit ${{ github.server_url }}/${{ github.repository }}/releases to review and publish"

View File

@@ -1,7 +1,7 @@
{
"id": "obsidian-mcp-server",
"name": "MCP Server",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.5",
"minAppVersion": "0.15.0",
"description": "Exposes Obsidian vault operations via Model Context Protocol (MCP) over HTTP.",
"author": "William Ballou",

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "obsidian-mcp-server",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "obsidian-mcp-server",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.5",
"license": "MIT",
"dependencies": {
"cors": "^2.8.5",

View File

@@ -1,6 +1,6 @@
{
"name": "obsidian-mcp-server",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.5",
"description": "MCP (Model Context Protocol) server plugin for Obsidian - exposes vault operations via HTTP",
"main": "main.js",
"scripts": {