Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,30 @@ jobs:
mkdir -p build
tar -czf build/thv-cli-docs.tar.gz -C docs/cli .

- name: Download toolhive-core schemas at pinned version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Resolve the toolhive-core version this release was built against
# (from go.mod, since we ship binaries compiled against that version).
# Re-exporting the schemas here lets downstream consumers (notably
# docs-website) skip the two-repo dance of deriving the version and
# fetching from a separate release.
mkdir -p build
CORE_VERSION=$(grep 'github.com/stacklok/toolhive-core' go.mod | awk '{print $2}' | head -1)
if [ -z "$CORE_VERSION" ]; then
echo "::error::Could not determine toolhive-core version from go.mod"
exit 1
fi
echo "Using toolhive-core version: $CORE_VERSION"
gh release download "$CORE_VERSION" \
--repo stacklok/toolhive-core \
--pattern "toolhive-legacy-registry.schema.json" \
--pattern "upstream-registry.schema.json" \
--pattern "publisher-provided.schema.json" \
--pattern "skill.schema.json" \
--dir build/

- name: Remove existing release assets (allows re-runs)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ release:
name: toolhive
extra_files:
- glob: build/thv-cli-docs.tar.gz
- glob: build/toolhive-legacy-registry.schema.json
- glob: build/upstream-registry.schema.json
- glob: build/publisher-provided.schema.json
- glob: build/skill.schema.json
- glob: docs/server/swagger.yaml
- glob: docs/server/swagger.json
- glob: docs/operator/crd-api.md
Expand Down
Loading