summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 }}