Skip to content

Commit 9aedc62

Browse files
committed
chore: Update build Windows MSI packages workflow
1 parent 9073902 commit 9aedc62

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/release-msi.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

88
def build-msi [] {

.github/workflows/release-msi.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
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

77
on:
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

1814
defaults:
@@ -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 }}
@@ -85,7 +81,7 @@ jobs:
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
@@ -95,6 +91,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)