Skip to content

Commit 0307910

Browse files
guyernestclaude
andcommitted
fix: Windows release asset upload path in GitHub Actions
Use relative paths instead of cygpath conversion to fix the Windows artifact upload issue in the release workflow. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5691fe0 commit 0307910

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release-tester.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ jobs:
4646
cd target/${{ matrix.target }}/release
4747
if [ "${{ matrix.os }}" = "windows-latest" ]; then
4848
mv mcp-tester.exe ${{ matrix.asset_name }}
49-
# Convert Unix path to Windows path for gh command on Windows
50-
WIN_PATH=$(cygpath -w "$(pwd)/${{ matrix.asset_name }}")
51-
echo "ASSET_PATH=$WIN_PATH" >> $GITHUB_ENV
49+
# Use relative path from repo root for Windows
50+
echo "ASSET_PATH=target/${{ matrix.target }}/release/${{ matrix.asset_name }}" >> $GITHUB_ENV
5251
else
5352
mv mcp-tester ${{ matrix.asset_name }}
54-
echo "ASSET_PATH=$(pwd)/${{ matrix.asset_name }}" >> $GITHUB_ENV
53+
echo "ASSET_PATH=target/${{ matrix.target }}/release/${{ matrix.asset_name }}" >> $GITHUB_ENV
5554
fi
5655
5756
- name: Get release tag

0 commit comments

Comments
 (0)