Skip to content

Commit bd76ddc

Browse files
committed
fix: split release create and asset uploads into separate steps for resilience
1 parent b562133 commit bd76ddc

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,22 @@ jobs:
8080
run: |
8181
awk "/^## \[${GITHUB_REF_NAME}\]/{found=1; next} found && /^## \[/{exit} found{print}" \
8282
CHANGELOG.md > /tmp/release-notes.md
83-
JAR=$(ls target/mcp-*.jar | grep -v 'original-' | head -1)
8483
gh release create "$GITHUB_REF_NAME" \
8584
--title "$GITHUB_REF_NAME" \
86-
--notes-file /tmp/release-notes.md \
87-
"$JAR#qtsurfer-mcp-java-${GITHUB_REF_NAME}.jar" \
88-
"native-binaries/qtsurfer-mcp-linux-amd64/qtsurfer-mcp#qtsurfer-mcp-linux-amd64" \
89-
"native-binaries/qtsurfer-mcp-macos-arm64/qtsurfer-mcp#qtsurfer-mcp-macos-arm64" \
85+
--notes-file /tmp/release-notes.md
86+
- name: Upload fat JAR
87+
env:
88+
GH_TOKEN: ${{ github.token }}
89+
run: |
90+
JAR=$(ls target/mcp-*.jar | grep -v 'original-' | head -1)
91+
gh release upload "$GITHUB_REF_NAME" "$JAR#qtsurfer-mcp-java-${GITHUB_REF_NAME}.jar"
92+
- name: Upload native binaries
93+
env:
94+
GH_TOKEN: ${{ github.token }}
95+
run: |
96+
gh release upload "$GITHUB_REF_NAME" \
97+
"native-binaries/qtsurfer-mcp-linux-amd64/qtsurfer-mcp#qtsurfer-mcp-linux-amd64"
98+
gh release upload "$GITHUB_REF_NAME" \
99+
"native-binaries/qtsurfer-mcp-macos-arm64/qtsurfer-mcp#qtsurfer-mcp-macos-arm64"
100+
gh release upload "$GITHUB_REF_NAME" \
90101
"native-binaries/qtsurfer-mcp-windows-amd64.exe/qtsurfer-mcp.exe#qtsurfer-mcp-windows-amd64.exe"

0 commit comments

Comments
 (0)