Skip to content

Commit

Permalink
github actions: fix msi upload using set file names
Browse files Browse the repository at this point in the history
  • Loading branch information
loriopatrick committed Aug 31, 2023
1 parent f1a0d5c commit 43e278a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,10 @@ jobs:
os: windows-latest
arch: i686-pc-windows-msvc
artifact: playit-windows-x86
arch_code: x86
- name: windows 64bit
os: windows-latest
arch: x86_64-pc-windows-msvc
artifact: playit-windows-x86_64
arch_code: x86_64
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -109,7 +107,7 @@ jobs:
targets: ${{ matrix.platform.arch }}

- run: cargo install cargo-wix
- run: cargo wix --target ${{ matrix.platform.arch }} --package playit-cli --nocapture
- run: cargo wix --target ${{ matrix.platform.arch }} --package playit-cli --nocapture --output=target/wix/${{ matrix.platform.artifact }}.msi

- name: Upload .exe
uses: actions/upload-release-asset@v1
Expand All @@ -127,6 +125,6 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/wix/playit-cli-*-${{ matrix.platform.arch_code }}.msi
asset_path: ./target/wix/${{ matrix.platform.artifact }}.msi
asset_name: ${{ matrix.platform.artifact }}.msi
asset_content_type: application/octet-stream

0 comments on commit 43e278a

Please sign in to comment.