From 0e8a239ae163edf203e81816df24a41a217d4429 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 25 Jun 2020 12:51:50 -0500 Subject: [PATCH] Added wix to gh workflow (#2055) Followed volta example --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36ec029cc..3ac37f786 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,11 +86,34 @@ jobs: profile: minimal toolchain: stable override: true + - name: Add cargo-wix subcommand + uses: actions-rs/cargo@v1 + with: + command: install + args: cargo-wix - name: Build uses: actions-rs/cargo@v1 with: command: build args: --release --all --features=stable + - name: Create msi with wix + uses: actions-rs/cargo@v1 + with: + command: wix + args: --no-build --output target\wix\nushell-windows.msi + - name: Create zip of binaries + run: powershell Compress-Archive nushell-windows.zip + working-directory: ./target/release + - name: Upload installer + uses: actions/upload-artifact@v2 + with: + name: windows-installer + path: target/wix/nushell-windows.msi + - name: Upload zip + uses: actions/upload-artifact@v2 + with: + name: windows-zip + path: target/release/nushell-windows.zip - name: Create output directory run: mkdir output - name: Copy files to output