Update release.yml

This commit is contained in:
Jonathan Turner 2020-06-26 09:28:09 +12:00 committed by GitHub
parent 3b2a87b6d4
commit d18bc78e7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,16 +116,19 @@ jobs:
with:
command: wix
args: --no-build --nocapture --output target\wix\nushell-windows.msi
- name: Create zip of binaries
run: powershell Compress-Archive nu*.exe nushell-windows.zip
working-directory: .\output
- name: Upload installer
uses: actions/upload-artifact@v2
with:
name: windows-installer
path: target\wix\nushell-windows.msi
- name: Upload artifact
- name: Upload zip
uses: actions/upload-artifact@v2
with:
name: windows
path: output\*
path: output\nushell-windows.zip
release:
name: Publish Release
@ -235,8 +238,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/nushell-windows.msi
asset_name: nushell-${{ steps.release_info.outputs.version }}-windows-x86_64.msi
asset_path: .\target\wix\nushell-windows.msi
asset_name: ${{ steps.info.outputs.windowsdir }}.msi
asset_content_type: applictaion/x-msi
- name: Upload Windows zip
uses: actions/upload-release-asset@v1
@ -244,6 +247,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release/nushell-windows.zip
asset_name: nushell-${{ steps.release_info.outputs.version }}-windows.zip
asset_path: .\output\nushell-windows.zip
asset_name: ${{ steps.info.outputs.windowsdir }}.zip
asset_content_type: application/zip