From 2c88b2fae7a3c470ec836a738e73b58d394d0ace Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 25 Jun 2020 14:30:07 -0500 Subject: [PATCH] Gh actions with wix (#2057) * Added wix to gh workflow Followed volta example * added --nocapture to see more error detail * move creation of wix to after we download less.exe * moved create wix down --- .github/workflows/release.yml | 37 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c4818556e..c9d8596a5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,24 +96,6 @@ jobs: with: command: build args: --release --all --features=stable - - name: Create msi with wix - uses: actions-rs/cargo@v1 - with: - command: wix - args: --no-build --nocapture --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 @@ -132,6 +114,25 @@ jobs: with: name: windows path: output/* + # moved this stuff down to create wix after we download less + - name: Create msi with wix + uses: actions-rs/cargo@v1 + with: + command: wix + args: --no-build --nocapture --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 release: name: Publish Release