mirror of
https://github.com/nushell/nushell
synced 2025-01-15 14:44:14 +00:00
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:
parent
501da433d4
commit
2c88b2fae7
1 changed files with 19 additions and 18 deletions
37
.github/workflows/release.yml
vendored
37
.github/workflows/release.yml
vendored
|
@ -96,24 +96,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --all --features=stable
|
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
|
- name: Create output directory
|
||||||
run: mkdir output
|
run: mkdir output
|
||||||
- name: Copy files to output
|
- name: Copy files to output
|
||||||
|
@ -132,6 +114,25 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: windows
|
name: windows
|
||||||
path: output/*
|
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:
|
release:
|
||||||
name: Publish Release
|
name: Publish Release
|
||||||
|
|
Loading…
Reference in a new issue