Skip to content

Commit 7958db2

Browse files
chore: update CI script
1 parent cd495ee commit 7958db2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ jobs:
6868
AUTH: ${{ steps.github-oidc.outputs.github_token }}
6969
SHA: ${{ github.sha }}
7070
run: ./scripts/utils/upload-artifact.sh
71+
72+
- name: Upload MCP Server tarball
73+
if: github.repository == 'stainless-sdks/flowglad-typescript'
74+
env:
75+
URL: https://pkg.stainless.com/s?subpackage=mcp-server
76+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
77+
SHA: ${{ github.sha }}
78+
BUILD_PATH: packages/mcp-server/dist
79+
run: ./scripts/utils/upload-artifact.sh
7180
test:
7281
timeout-minutes: 10
7382
name: test

scripts/utils/upload-artifact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [[ "$SIGNED_URL" == "null" ]]; then
1212
exit 1
1313
fi
1414

15-
UPLOAD_RESPONSE=$(tar -cz dist | curl -v -X PUT \
15+
UPLOAD_RESPONSE=$(tar -cz "${BUILD_PATH:-dist}" | curl -v -X PUT \
1616
-H "Content-Type: application/gzip" \
1717
--data-binary @- "$SIGNED_URL" 2>&1)
1818

0 commit comments

Comments
 (0)