Skip to content

Commit 7098c20

Browse files
publish viewmodels lib with nuget #24
1 parent 057855b commit 7098c20

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/codebreaker-lib-viewmodels.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,34 @@ on:
1818
# Allow manually trigger
1919
workflow_dispatch:
2020

21+
env:
22+
# Define the build number
23+
BUILD_NUMBER: ${{ github.run_number }}
24+
ARTIFACT_NAME: codebreaker-viewmodels
25+
2126
jobs:
2227
build:
2328
uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/createnuget-withbuildnumber.yml@main
2429
with:
2530
version-suffix: beta.
26-
version-number: ${{ github.run_number }}
31+
version-number: $BUILD_NUMBER
2732
version-offset: 10
2833
solutionfile-path: src/CodeBreaker.ViewModels.sln
2934
projectfile-path: src/Codebreaker.ViewModels/Codebreaker.ViewModels.csproj
3035
dotnet-version: '8.0.x'
31-
artifact-name: codebreaker-viewmodels
36+
artifact-name: $ARTIFACT_NAME
3237
branch-name: main
3338

3439
publishdevops:
3540
uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-azuredevops.yml@main
3641
needs: build
3742
with:
38-
artifact-name: codebreaker-viewmodels
43+
artifact-name: $ARTIFACT_NAME
3944
secrets: inherit
4045

41-
# publishnuget:
42-
# uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-nugetserver.yml@main
43-
# needs: publishdevops
44-
# with:
45-
# artifact-name: codebreaker-viewmodels
46-
# secrets: inherit
46+
publishnuget:
47+
uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-nugetserver.yml@main
48+
needs: publishdevops
49+
with:
50+
artifact-name: $ARTIFACT_NAME
51+
secrets: inherit

0 commit comments

Comments
 (0)