fix(packaging): distribute plugin archives without tracking dist
This commit is contained in:
1 parent
8571390f15
commit
f4788375a1
11 files changed
+159
-2430
No files matched your search
@@ -32,5 +32,5 @@ jobs:
|
||||
- run: bun run build:binary
|
||||
- run: bun run scripts/verify-binary.ts dist/bin/hose-use
|
||||
- run: bun run build:plugin
|
||||
- run: git diff --exit-code -- dist/mcp/server.js
|
||||
- run: bun run scripts/verify-binary.ts dist/mcp/server.js --plugin
|
||||
- run: bun run package:plugin
|
||||
@@ -88,6 +88,10 @@ jobs:
|
||||
bun run build:plugin
|
||||
bun run scripts/verify-binary.ts dist/mcp/server.js --plugin
|
||||
|
||||
- name: Package plugin archive
|
||||
if: ${{ !inputs.mirror_only }}
|
||||
run: bun run package:plugin
|
||||
|
||||
- name: Package release archives
|
||||
if: ${{ !inputs.mirror_only }}
|
||||
run: |
|
||||
@@ -114,6 +118,7 @@ jobs:
|
||||
(cd "${stage}" && zip -q "${GITHUB_WORKSPACE}/dist/bin/hose-use-windows-x64.zip" hose-use-windows-x64.exe hose-aipro.cmd)
|
||||
rm -rf "${stage}"
|
||||
|
||||
# Includes the plugin archive alongside platform binaries and archives.
|
||||
(cd dist/bin && sha256sum hose-use-* > checksums.txt)
|
||||
|
||||
- name: Publish GitHub Release
|
||||
@@ -149,6 +154,7 @@ jobs:
|
||||
TAG_NAME="${RELEASE_TAG}"
|
||||
if [ "${MIRROR_ONLY:-false}" = "true" ]; then
|
||||
# Preserve the published bytes and checksums; never rebuild or replace GitHub assets.
|
||||
# hose-use-* also includes the plugin archive, covered by checksums.txt.
|
||||
mkdir -p dist/bin
|
||||
gh release download "$TAG_NAME" --repo "$GITHUB_REPOSITORY" --dir dist/bin --pattern 'hose-use-*' --pattern checksums.txt
|
||||
(cd dist/bin && sha256sum --strict -c checksums.txt)
|
||||
|
||||
Reference in new issue
Block a user