From 2d4029e105639ed58d92dfa858a0a535d6bfe013 Mon Sep 17 00:00:00 2001 From: "Abd El-Twab M. Fakhry" Date: Sat, 16 Mar 2024 08:56:41 +0200 Subject: [PATCH] Append exe to windows executables --- .github/workflows/release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a66306f..71289fd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -74,6 +74,9 @@ jobs: GOOS=${GOOSARCH%/*} GOARCH=${GOOSARCH#*/} BINARY_NAME=$(basename $GITHUB_REPOSITORY)-$GOOS-$GOARCH + if [[ "$GOOS" == "windows" ]]; then + BINARY_NAME=$BINARY_NAME.exe + fi echo "BINARY_NAME=$BINARY_NAME" | tee -a $GITHUB_ENV echo "GOOS=$GOOS" | tee -a $GITHUB_ENV echo "GOARCH=$GOARCH" | tee -a $GITHUB_ENV