File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ name: Release Pipeline
2
2
3
3
on :
4
4
push : {}
5
+ workflow_dispatch :
6
+ inputs :
7
+ version :
8
+ description : Version of the release
9
+ required : true
10
+ type : string
11
+ versionName :
12
+ description : Version name of the release
13
+ required : true
14
+ type : string
5
15
6
16
permissions :
7
17
contents : read
46
56
path : TestResults-IntegrationTests/
47
57
if : ${{ always() }}
48
58
49
- # Problem: `Version` and `VersionName` is hardcoded
50
59
- name : Publish Release
51
- run : dotnet publish -c Release src\DevOpsDaysTasks.UI -o DevOpsDaysTasks /p:Version=2.0.0 /p:VersionName=Bear
60
+ env :
61
+ VERSION : ${{ inputs.version || '0.0.0' }}
62
+ VERSION_NAME : ${{ inputs.versionName || 'Dev' }}
63
+ run : dotnet publish -c Release src\DevOpsDaysTasks.UI -o DevOpsDaysTasks /p:Version=${{ env.VERSION }} /p:VersionName=${{ env.VERSION_NAME }}
52
64
53
65
- name : Checkout external files
54
66
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments