summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosmicHorror <CosmicHorrorDev@pm.me>2023-10-21 20:31:33 -0600
committerGitHub <noreply@github.com>2023-10-21 21:31:33 -0500
commitd1fd7c684f3f84ec03dd8744704e9412a163198d (patch)
treee12e7acf939ae1917883c782c97ebbab01e7b78c
parent20b1459a4225982a56fd0fc57df6e5d10f4f568b (diff)
Use .exe for windows executable (#253)
-rw-r--r--.github/workflows/publish.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 2a34b47..3078abe 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -91,11 +91,17 @@ jobs:
run: |
$CARGO --version
$CARGO build --release --locked --target ${{ matrix.target }}
+ # Handle windows being an oddity
+ if [ "${{ matrix.os }}" = "windows-latest" ]; then
+ echo "BIN_NAME=sd.exe" >> $GITHUB_ENV
+ else
+ echo "BIN_NAME=sd" >> $GITHUB_ENV
+ fi
- name: Upload binaries to release
uses: svenstaro/upload-release-action@2.7.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: target/${{ matrix.target }}/release/sd
+ file: target/${{ matrix.target }}/release/${{ env.BIN_NAME }}
asset_name: sd-${{ env.SD_VERSION }}-${{ matrix.target }}
tag: ${{ github.ref }}