mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 15:26:53 -04:00
Split out release-assets job for windows from mac/linux
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user