Skip to content

Commit 14eb183

Browse files
authored
feat(build-release): enhance workflow with tag input
Added input parameter 'tag' for release workflow.
1 parent 4ffb938 commit 14eb183

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
release:
88
types: [published]
99
workflow_dispatch:
10+
inputs:
11+
tag:
12+
required: true
13+
type: string
1014

1115
jobs:
1216
build-windows:
@@ -35,6 +39,7 @@ jobs:
3539
uses: softprops/action-gh-release@v2
3640
with:
3741
files: dist/tchMaterial-parser-windows-x64.exe
42+
tag_name: ${{ inputs.tag || github.ref_name }}
3843
env:
3944
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4045

@@ -64,6 +69,7 @@ jobs:
6469
uses: softprops/action-gh-release@v2
6570
with:
6671
files: dist/tchMaterial-parser-linux-x64
72+
tag_name: ${{ inputs.tag || github.ref_name }}
6773
env:
6874
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6975

@@ -93,6 +99,7 @@ jobs:
9399
uses: softprops/action-gh-release@v2
94100
with:
95101
files: dist/tchMaterial-parser-linux-arm64
102+
tag_name: ${{ inputs.tag || github.ref_name }}
96103
env:
97104
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98105

@@ -125,5 +132,6 @@ jobs:
125132
uses: softprops/action-gh-release@v2
126133
with:
127134
files: dist/tchMaterial-parser-mac-arm64.zip
135+
tag_name: ${{ inputs.tag || github.ref_name }}
128136
env:
129137
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)