Skip to content
Merged
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
20 changes: 16 additions & 4 deletions .github/workflows/release-dsh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,24 @@ jobs:
- run: npm run test:dsh
- run: npm run build:dsh
- run: npm run verify:dsh
- run: npm publish --workspace stratagate-dsh --provenance --access public
- name: Pack release assets from one artifact
shell: bash
run: |
version="$(node -p 'require("./integrations/deepseek-harness/package.json").version')"
versioned="stratagate-dsh-${version}.tgz"
npm pack --workspace stratagate-dsh --silent
test -f "$versioned"
cp "$versioned" stratagate-dsh.tgz
cmp "$versioned" stratagate-dsh.tgz
echo "VERSION=$version" >> "$GITHUB_ENV"
- name: Publish exact package artifact
run: npm publish "stratagate-dsh-${VERSION}.tgz" --provenance --access public
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
version="$(node -p 'require("./integrations/deepseek-harness/package.json").version')"
gh release create "$GITHUB_REF_NAME" --verify-tag --generate-notes --title "StrataGate DSH $version"
gh release create "$GITHUB_REF_NAME" "stratagate-dsh-${VERSION}.tgz" stratagate-dsh.tgz --verify-tag --generate-notes --title "StrataGate DSH $VERSION"

publish-artifact:
if: github.event_name == 'workflow_dispatch'
Expand All @@ -81,11 +91,13 @@ jobs:
tar -xOf "$filename" package/package.json > package-manifest.json
test "$(node -p 'require("./package-manifest.json").name')" = "stratagate-dsh"
test "$(node -p 'require("./package-manifest.json").version')" = "$VERSION"
cp "$filename" stratagate-dsh.tgz
cmp "$filename" stratagate-dsh.tgz
- name: Publish exact package artifact
run: npm publish "stratagate-dsh-${VERSION}.tgz" --provenance --access public
- name: Create GitHub release with verified artifact
shell: bash
run: |
tag="stratagate-dsh-v${VERSION}"
filename="stratagate-dsh-${VERSION}.tgz"
gh release create "$tag" "$filename" --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --generate-notes --title "StrataGate DSH $VERSION"
gh release create "$tag" "$filename" stratagate-dsh.tgz --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --generate-notes --title "StrataGate DSH $VERSION"
Loading