fixup! Release dec 2025 (#15)

This commit is contained in:
2025-12-19 18:14:20 +00:00
parent f79782a008
commit 7cbe16ae7e
+103 -102
View File
@@ -1,120 +1,121 @@
name: Release name: Release
on: on:
push: push:
branches: branches:
- main - main
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- "docs/**" - "docs/**"
workflow_dispatch: workflow_dispatch:
permissions: permissions:
id-token: write id-token: write
contents: write contents: write
packages: write packages: write
jobs: jobs:
release: release:
uses: lukaszraczylo/shared-actions/.github/workflows/go-release-cgo.yaml@main uses: lukaszraczylo/shared-actions/.github/workflows/go-release-cgo.yaml@main
with:
go-version: ">=1.24"
node-enabled: true
node-version: "20"
node-build-script: "cd ui && npm ci && npm run build"
node-cache-dependency-path: "ui/package-lock.json"
node-output-path: "ui/dist"
node-embed-path: "internal/worker/static"
secrets: inherit
commit-marketplace:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: with:
ref: main go-version: ">=1.24"
node-enabled: true
node-version: "20"
node-build-script: "cd ui && npm ci && npm run build"
node-cache-dependency-path: "ui/package-lock.json"
node-output-path: "ui/dist"
node-embed-path: "internal/worker/static"
lfs: true
secrets: inherit
- name: Download checksums commit-marketplace:
run: | needs: release
VERSION="${{ needs.release.outputs.version_tag }}" runs-on: ubuntu-latest
curl -sSL -o checksums.txt \ steps:
"https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION}/checksums.txt" - uses: actions/checkout@v4
with:
ref: main
- name: Generate marketplace.json with checksums - name: Download checksums
run: | run: |
VERSION="${{ needs.release.outputs.version }}" VERSION="${{ needs.release.outputs.version_tag }}"
VERSION_TAG="${{ needs.release.outputs.version_tag }}" curl -sSL -o checksums.txt \
TODAY=$(date -u +%Y-%m-%d) "https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION}/checksums.txt"
# Extract checksums from checksums.txt - name: Generate marketplace.json with checksums
SHA_DARWIN_ARM64=$(grep "darwin_arm64" checksums.txt | awk '{print $1}') run: |
SHA_LINUX_AMD64=$(grep "linux_amd64" checksums.txt | awk '{print $1}') VERSION="${{ needs.release.outputs.version }}"
SHA_WINDOWS_AMD64=$(grep "windows_amd64" checksums.txt | awk '{print $1}') VERSION_TAG="${{ needs.release.outputs.version_tag }}"
TODAY=$(date -u +%Y-%m-%d)
# Generate marketplace.json # Extract checksums from checksums.txt
cat > marketplace.json << EOF SHA_DARWIN_ARM64=$(grep "darwin_arm64" checksums.txt | awk '{print $1}')
{ SHA_LINUX_AMD64=$(grep "linux_amd64" checksums.txt | awk '{print $1}')
"\$schema": "https://anthropic.com/claude-code/marketplace.schema.json", SHA_WINDOWS_AMD64=$(grep "windows_amd64" checksums.txt | awk '{print $1}')
"name": "claude-mnemonic",
"version": "1.0.0", # Generate marketplace.json
"description": "Persistent memory system for Claude Code - stores observations, session summaries, and user prompts with semantic search", cat > marketplace.json << EOF
"owner": { {
"name": "lukaszraczylo", "\$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
"email": "[email protected]", "name": "claude-mnemonic",
"url": "https://github.com/lukaszraczylo" "version": "1.0.0",
}, "description": "Persistent memory system for Claude Code - stores observations, session summaries, and user prompts with semantic search",
"repository": "https://github.com/lukaszraczylo/claude-mnemonic", "owner": {
"plugins": [ "name": "lukaszraczylo",
{ "email": "[email protected]",
"name": "claude-mnemonic", "url": "https://github.com/lukaszraczylo"
"description": "Persistent memory system for Claude Code - Go implementation with SQLite and ChromaDB vector search", },
"version": "${VERSION}", "repository": "https://github.com/lukaszraczylo/claude-mnemonic",
"author": { "plugins": [
"name": "lukaszraczylo", {
"url": "https://github.com/lukaszraczylo" "name": "claude-mnemonic",
}, "description": "Persistent memory system for Claude Code - Go implementation with SQLite and ChromaDB vector search",
"category": "productivity", "version": "${VERSION}",
"tags": ["memory", "persistence", "search", "context"], "author": {
"license": "MIT", "name": "lukaszraczylo",
"homepage": "https://github.com/lukaszraczylo/claude-mnemonic", "url": "https://github.com/lukaszraczylo"
"releases": {
"latest": "${VERSION}",
"versions": {
"${VERSION}": {
"releaseDate": "${TODAY}",
"downloads": {
"darwin-arm64": {
"url": "https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION_TAG}/claude-mnemonic_${VERSION}_darwin_arm64.tar.gz",
"format": "tar.gz",
"sha256": "${SHA_DARWIN_ARM64}"
}, },
"linux-amd64": { "category": "productivity",
"url": "https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION_TAG}/claude-mnemonic_${VERSION}_linux_amd64.tar.gz", "tags": ["memory", "persistence", "search", "context"],
"format": "tar.gz", "license": "MIT",
"sha256": "${SHA_LINUX_AMD64}" "homepage": "https://github.com/lukaszraczylo/claude-mnemonic",
}, "releases": {
"windows-amd64": { "latest": "${VERSION}",
"url": "https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION_TAG}/claude-mnemonic_${VERSION}_windows_amd64.zip", "versions": {
"format": "zip", "${VERSION}": {
"sha256": "${SHA_WINDOWS_AMD64}" "releaseDate": "${TODAY}",
"downloads": {
"darwin-arm64": {
"url": "https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION_TAG}/claude-mnemonic_${VERSION}_darwin_arm64.tar.gz",
"format": "tar.gz",
"sha256": "${SHA_DARWIN_ARM64}"
},
"linux-amd64": {
"url": "https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION_TAG}/claude-mnemonic_${VERSION}_linux_amd64.tar.gz",
"format": "tar.gz",
"sha256": "${SHA_LINUX_AMD64}"
},
"windows-amd64": {
"url": "https://github.com/lukaszraczylo/claude-mnemonic/releases/download/${VERSION_TAG}/claude-mnemonic_${VERSION}_windows_amd64.zip",
"format": "zip",
"sha256": "${SHA_WINDOWS_AMD64}"
}
}
}
}
} }
} }
} ]
} }
} EOF
}
]
}
EOF
echo "Generated marketplace.json:" echo "Generated marketplace.json:"
cat marketplace.json cat marketplace.json
- name: Commit and push - name: Commit and push
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
git add marketplace.json git add marketplace.json
git diff --staged --quiet || git commit -m "chore: update marketplace for ${{ needs.release.outputs.version_tag }}" git diff --staged --quiet || git commit -m "chore: update marketplace for ${{ needs.release.outputs.version_tag }}"
git push git push