Split out release-assets job for windows from mac/linux

This commit is contained in:
Anthony Oteri
2023-09-29 10:39:21 -04:00
parent b676e7e220
commit 452a136b17
+13 -8
View File
@@ -53,18 +53,23 @@ jobs:
run: cargo build --release run: cargo build --release
- name: Upload release assets - name: Upload release assets
if: matrix.config.os != 'windows-latest'
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ needs.create_release.outputs.upload_url }} upload_url: ${{ needs.create_release.outputs.upload_url }}
# This is how it will be named on the release page. Put hatever name asset_name: ${{ matrix.config.os }}/dredge
# 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_path: ./target/release/dredge asset_path: ./target/release/dredge
# probably you will need to change it, but most likely you are asset_content_type: application/octet-stream
# uploading a binary file
- 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 asset_content_type: application/octet-stream