File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33# Created: 2025/05/21 19:05:20
44# Description:
5- # A script to build Windows MSI packages for NuShell. Need wix 6.0 to be intalled .
5+ # A script to build Windows MSI packages for NuShell. Need wix 6.0 to be installed .
66# The script will download the specified NuShell release, extract it, and create an MSI package.
77
88def build-msi [] {
Original file line number Diff line number Diff line change 22# REF:
33# 1. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrixinclude
44#
5- name : Create Windows MSI
5+ name : Build Windows MSI
66
77on :
8- push :
9- branches :
10- - feature/winget-publish
118 workflow_dispatch :
129 inputs :
1310 tag :
1411 required : true
15- default : ' v0.103.0'
1612 description : ' Tag to Rebuild MSI'
1713
1814defaults :
@@ -63,15 +59,15 @@ jobs:
6359 run : nu .github/workflows/release-msi.nu
6460 env :
6561 OS : ${{ matrix.os }}
66- REF : ${{ inputs.tag || 'v0.103.0' }}
62+ REF : ${{ inputs.tag }}
6763 TARGET : ${{ matrix.target }}
6864 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6965
7066 # REF: https://github.com/marketplace/actions/gh-release
7167 - name : Publish Archive
7268 uses : softprops/action-gh-release@v2.0.5
7369 with :
74- tag_name : ${{ inputs.tag || 'v0.103.0' }}
70+ tag_name : ${{ inputs.tag }}
7571 files : ${{ steps.nu.outputs.msi }}
7672 env :
7773 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8581 env :
8682 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8783 run : >-
88- gh release download ${{ inputs.tag || 'v0.103.0' }}
84+ gh release download ${{ inputs.tag }}
8985 --repo ${{ github.repository }}
9086 --pattern '*'
9187 --dir release
9591 uses : softprops/action-gh-release@v2.0.5
9692 with :
9793 files : SHA256SUMS
98- tag_name : ${{ inputs.tag || 'v0.103.0' }}
94+ tag_name : ${{ inputs.tag }}
9995 env :
10096 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments