Skip to content

Commit 128c489

Browse files
committed
Working on appx building & signing
1 parent 7dff531 commit 128c489

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Publish Release
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
tag:
7-
description: 'Tag for the release (e.g. v1.0.0)'
8-
required: false
94
push:
105
tags:
116
- "v*.*.*"
@@ -29,8 +24,7 @@ jobs:
2924
- name: Build
3025
run: |
3126
# Set the version number for the build based on the tag or fallback to the branch name
32-
$version = if ("${{ inputs.tag }}" -match '^v(\d+\.\d+\.\d+)$') { "${{ inputs.tag }}.0" } else { "${{ github.ref_name }}.0" }
33-
$version = $version -replace '^v', '' # Remove the 'v' prefix if present, for example: v1.0.0 -> 1.0.0
27+
$version = ${{github.ref_name}} -replace '^v', ''
3428
3529
Write-Host "Setting version to $version"
3630

0 commit comments

Comments
 (0)