mirror of
https://github.com/kepano/obsidian-skills.git
synced 2026-12-05 10:05:18 -08:00
caf3e98cd2
Gemini CLI only reads skills from a root skills/ folder, and a symlink there breaks because it copies the clone with fs.cp, which points the link at a temp folder it then deletes. The manifest lives in plugins/obsidian/ instead, and a workflow attaches an archive with real copies of the skills to each published release, where Gemini installs from.
35 lines
938 B
YAML
35 lines
938 B
YAML
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
|