Compare commits
4 Commits
1.0.0-alph
...
1.0.0-alph
| Author | SHA1 | Date | |
|---|---|---|---|
| 52a5b4ce54 | |||
| 87d04ee834 | |||
| 3ecab8a9c6 | |||
| 9adc81705f |
54
.github/workflows/release.yml
vendored
54
.github/workflows/release.yml
vendored
@@ -110,25 +110,43 @@ 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
|
||||
RESPONSE=$(curl -s -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
|
||||
)")
|
||||
|
||||
*Add release notes here before publishing*
|
||||
# Extract release ID using grep and sed (no jq dependency)
|
||||
RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')
|
||||
|
||||
## Installation
|
||||
echo "Created release with ID: $RELEASE_ID"
|
||||
|
||||
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
|
||||
# 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"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-mcp-server",
|
||||
"name": "MCP Server",
|
||||
"version": "1.0.0-alpha.4",
|
||||
"version": "1.0.0-alpha.6",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Exposes Obsidian vault operations via Model Context Protocol (MCP) over HTTP.",
|
||||
"author": "William Ballou",
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "obsidian-mcp-server",
|
||||
"version": "1.0.0-alpha.4",
|
||||
"version": "1.0.0-alpha.6",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "obsidian-mcp-server",
|
||||
"version": "1.0.0-alpha.4",
|
||||
"version": "1.0.0-alpha.6",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cors": "^2.8.5",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsidian-mcp-server",
|
||||
"version": "1.0.0-alpha.4",
|
||||
"version": "1.0.0-alpha.6",
|
||||
"description": "MCP (Model Context Protocol) server plugin for Obsidian - exposes vault operations via HTTP",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user