mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
Compare commits
2 Commits
bump-1.2.0
..
1.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
| caf3e98cd2 | |||
| 398127736b |
@@ -0,0 +1,34 @@
|
||||
name: Gemini release archive
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
package:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.release.tag_name }}
|
||||
|
||||
- name: Check the manifest version matches the tag
|
||||
env:
|
||||
TAG: ${{ github.event.release.tag_name }}
|
||||
run: |
|
||||
version="$(jq -r .version plugins/obsidian/gemini-extension.json)"
|
||||
if [[ "$version" != "${TAG#v}" ]]; then
|
||||
echo "gemini-extension.json is $version but the release tag is $TAG" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- run: ./scripts/package-gemini.sh dist/obsidian-gemini.tar.gz
|
||||
|
||||
- name: Attach the archive to the release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
TAG: ${{ github.event.release.tag_name }}
|
||||
run: gh release upload "$TAG" dist/obsidian-gemini.tar.gz --clobber
|
||||
@@ -0,0 +1 @@
|
||||
dist/
|
||||
@@ -46,6 +46,12 @@ To use ssh instead, if you have a GitHub SSH key set up:
|
||||
npx skills add git@github.com:obsidianmd/obsidian-skills.git
|
||||
```
|
||||
|
||||
### Gemini CLI
|
||||
|
||||
```sh
|
||||
gemini extensions install https://github.com/obsidianmd/obsidian-skills
|
||||
```
|
||||
|
||||
### Manually
|
||||
|
||||
#### Claude Code
|
||||
@@ -78,6 +84,8 @@ Update the plugin version in every manifest with:
|
||||
|
||||
The script also accepts `major`, `minor`, or an explicit version like `1.1.0`.
|
||||
|
||||
Gemini CLI installs from the latest GitHub release, so publish a release for each version, tagged with the version number. The `Gemini release archive` workflow then attaches `obsidian-gemini.tar.gz`, which has real copies of the skills. Don't attach other files to a release, because Gemini CLI only picks a file when there's exactly one; otherwise it falls back to the source archive, which has no Gemini manifest. To build the archive locally, run `./scripts/package-gemini.sh`.
|
||||
|
||||
## Skills
|
||||
|
||||
| Skill | Description |
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "obsidian",
|
||||
"version": "1.2.0",
|
||||
"description": "Work with local Obsidian vaults using the Obsidian CLI and skills for Markdown, Bases, Canvas, Sync and Publish, web extraction, and templates."
|
||||
}
|
||||
@@ -12,6 +12,7 @@ files=(
|
||||
"plugins/obsidian/plugin.json"
|
||||
"plugins/obsidian/.claude-plugin/plugin.json"
|
||||
"plugins/obsidian/.cursor-plugin/plugin.json"
|
||||
"plugins/obsidian/gemini-extension.json"
|
||||
".claude-plugin/marketplace.json"
|
||||
)
|
||||
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
out="${1:-dist/obsidian-gemini.tar.gz}"
|
||||
plugin="plugins/obsidian"
|
||||
|
||||
stage="$(mktemp -d)"
|
||||
trap 'rm -rf "$stage"' EXIT
|
||||
|
||||
cp "$plugin/gemini-extension.json" "$plugin/LICENSE" "$stage/"
|
||||
# Gemini copies an installed extension with fs.cp, which breaks symlinks, so the archive needs real files.
|
||||
cp -RL "$plugin/skills" "$stage/skills"
|
||||
|
||||
mkdir -p "$(dirname "$out")"
|
||||
tar -czf "$out" -C "$stage" gemini-extension.json LICENSE skills
|
||||
|
||||
echo "Wrote $out"
|
||||
Reference in New Issue
Block a user