Skip to content

Commit 319ce5b

Browse files
Add manual build trigger and version input
1 parent f84b4e8 commit 319ce5b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ name: Release Pipeline
22

33
on:
44
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
515

616
permissions:
717
contents: read
@@ -46,9 +56,11 @@ jobs:
4656
path: TestResults-IntegrationTests/
4757
if: ${{ always() }}
4858

49-
# Problem: `Version` and `VersionName` is hardcoded
5059
- 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 }}
5264

5365
- name: Checkout external files
5466
uses: actions/checkout@v4

0 commit comments

Comments
 (0)