From 452a136b17184381a18a318f2725263c5e25f8a7 Mon Sep 17 00:00:00 2001 From: Anthony Oteri Date: Fri, 29 Sep 2023 10:39:21 -0400 Subject: [PATCH] Split out release-assets job for windows from mac/linux --- .github/workflows/release.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4fa69c..9bdf9dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,18 +53,23 @@ jobs: run: cargo build --release - name: Upload release assets + if: matrix.config.os != 'windows-latest' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.create_release.outputs.upload_url }} - # This is how it will be named on the release page. Put hatever name - # you like, remember that they need to be different for each platform. - # You can choose any build matrix parameters. For Rust I use the - # target triple. - asset_name: dredge-${{ matrix.config.os }} - # The path to the file you want to upload. + asset_name: ${{ matrix.config.os }}/dredge asset_path: ./target/release/dredge - # probably you will need to change it, but most likely you are - # uploading a binary file + asset_content_type: application/octet-stream + + - name: Upload release assets (Windows) + if: matrix.config.os == 'windows-latest' + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create_release.outputs.upload_url }} + asset_name: ${{ matrix.config.os }}/dredge.exe + asset_path: ./target/release/dredge.exe asset_content_type: application/octet-stream