Skip to content

Commit f76e122

Browse files
committed
Working on appx building & signing
1 parent cd0c241 commit f76e122

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
with:
2727
dotnet-version: 9.0.x
2828

29-
- name: Build x64
29+
- name: Build
3030
run: |
3131
# Set the version number for the build based on the tag or fallback to the branch name
32-
$version = if ("${{ inputs.tag }}".Length -eq 0) { "${{ inputs.tag }}.0" } else { "${{ github.ref_name }}.0" }
32+
$version = if ("${{ inputs.tag }}" -match '^v(\d+\.\d+\.\d+)$') { "${{ inputs.tag }}.0" } else { "${{ github.ref_name }}.0" }
3333
3434
Write-Host "Setting version to $version"
3535
@@ -80,9 +80,9 @@ jobs:
8080
name: Create Release
8181
with:
8282
artifacts: "${{ github.workspace }}/tmp/*.msix" # Path to the signed msix files to upload as artifacts for the release. Use glob pattern to match all files in the tmp folder.
83-
name: if ("${{ inputs.tag }}".Length -eq 0) { "Release ${{ inputs.tag }}" } else { "Release ${{ github.ref_name }}" }
83+
name: if ("${{ inputs.tag }}" -match '^v(\d+\.\d+\.\d+)$') { "Release ${{ inputs.tag }}" } else { "Release ${{ github.ref_name }}" }
8484
allowUpdates: true
85-
tag: if ("${{ inputs.tag }}".Length -eq 0) { ${{ inputs.tag }} } else { ${{ github.ref_name }} }
85+
tag: if ("${{ inputs.tag }}" -match '^v(\d+\.\d+\.\d+)$') { "${{ inputs.tag }}" } else { ${{ github.ref_name }} }
8686

8787
# publish:
8888
# runs-on: windows-latest

0 commit comments

Comments
 (0)