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
This commit is contained in:
Darren Schroeder 2020-06-25 14:30:07 -05:00 committed by GitHub
parent 501da433d4
commit 2c88b2fae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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