Skip to content

Commit c1fc7c1

Browse files
committed
chore: Try to fix release-msi.yml
1 parent 913519e commit c1fc7c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release-msi.nu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def build-msi [] {
1313
let target = $env.TARGET
1414
# We should read the version from the environment variable first
1515
# As we may build the MSI package for a specific version not the latest one
16-
let version = $env.MSI_VERSION? | default (open Cargo.toml | get package.version)
16+
let version = $env.MSI_VERSION
1717
let arch = if $nu.os-info.arch =~ 'x86_64' { 'x64' } else { 'arm64' }
1818

1919
print $'Building msi package for (ansi g)($target)(ansi reset) with version (ansi g)($version)(ansi reset) from tag (ansi g)($env.REF)(ansi reset)...'

.github/workflows/release-msi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Publish Archive
7575
uses: softprops/action-gh-release@v2.0.5
7676
with:
77-
tag_name: ${{ inputs.tag }}
77+
tag_name: v${{ inputs.tag }}
7878
files: ${{ steps.nu.outputs.msi }}
7979
env:
8080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -88,7 +88,7 @@ jobs:
8888
env:
8989
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9090
run: >-
91-
gh release download ${{ inputs.tag }}
91+
gh release download v${{ inputs.tag }}
9292
--repo ${{ github.repository }}
9393
--pattern '*'
9494
--dir release
@@ -98,6 +98,6 @@ jobs:
9898
uses: softprops/action-gh-release@v2.0.5
9999
with:
100100
files: SHA256SUMS
101-
tag_name: ${{ inputs.tag }}
101+
tag_name: v${{ inputs.tag }}
102102
env:
103103
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)