7 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
5b00626258 1.0.0-alpha.3 2025-10-26 13:09:16 -04:00
79c4af55d5 feat: add Gitea support to release workflow
Add platform detection to support creating releases on both GitHub
and Gitea servers. The workflow now:
- Detects the platform using github.server_url
- Uses GitHub CLI (gh) for GitHub releases
- Uses gitea-release-action for Gitea releases
- Creates draft releases with the same artifacts on both platforms
2025-10-26 13:08:55 -04:00
c9c1db4631 1.0.0-alpha.2 2025-10-26 12:56:23 -04:00
dd4976e218 fix: support pre-release version tags in release workflow
Add support for semantic version tags with pre-release identifiers
(e.g., 1.0.0-alpha.1, 1.0.0-beta.2) in the GitHub Actions release
workflow.

The workflow now triggers on both stable versions (X.Y.Z) and
pre-release versions (X.Y.Z-*).

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 12:55:59 -04:00
4 changed files with 47 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-*"
jobs:
release:
@@ -74,7 +75,8 @@ jobs:
echo "File sizes:"
ls -lh main.js manifest.json styles.css
- name: Create draft release
- name: Create draft release (GitHub)
if: github.server_url == 'https://github.com'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
@@ -105,3 +107,43 @@ jobs:
echo "✅ Draft release created: $TAG_VERSION"
echo "Visit https://github.com/${{ github.repository }}/releases to review and publish"
- name: Create draft release (Gitea)
if: github.server_url != 'https://github.com'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_VERSION="${GITHUB_REF#refs/tags/}"
# 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')
echo "Created release with ID: $RELEASE_ID"
# 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
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.1",
"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.1",
"version": "1.0.0-alpha.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "obsidian-mcp-server",
"version": "1.0.0-alpha.1",
"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.1",
"version": "1.0.0-alpha.5",
"description": "MCP (Model Context Protocol) server plugin for Obsidian - exposes vault operations via HTTP",
"main": "main.js",
"scripts": {