From 7098c20e8c417cc54a2ffaeff6a50aca52b7b1ed Mon Sep 17 00:00:00 2001 From: Christian Nagel Date: Sat, 5 Aug 2023 18:57:04 +0200 Subject: [PATCH] publish viewmodels lib with nuget #24 --- .../workflows/codebreaker-lib-viewmodels.yml | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codebreaker-lib-viewmodels.yml b/.github/workflows/codebreaker-lib-viewmodels.yml index 4f8476bd..a4291221 100644 --- a/.github/workflows/codebreaker-lib-viewmodels.yml +++ b/.github/workflows/codebreaker-lib-viewmodels.yml @@ -18,29 +18,34 @@ on: # Allow manually trigger workflow_dispatch: +env: + # Define the build number + BUILD_NUMBER: ${{ github.run_number }} + ARTIFACT_NAME: codebreaker-viewmodels + jobs: build: uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/createnuget-withbuildnumber.yml@main with: version-suffix: beta. - version-number: ${{ github.run_number }} + version-number: $BUILD_NUMBER version-offset: 10 solutionfile-path: src/CodeBreaker.ViewModels.sln projectfile-path: src/Codebreaker.ViewModels/Codebreaker.ViewModels.csproj dotnet-version: '8.0.x' - artifact-name: codebreaker-viewmodels + artifact-name: $ARTIFACT_NAME branch-name: main publishdevops: uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-azuredevops.yml@main needs: build with: - artifact-name: codebreaker-viewmodels + artifact-name: $ARTIFACT_NAME secrets: inherit - # publishnuget: - # uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-nugetserver.yml@main - # needs: publishdevops - # with: - # artifact-name: codebreaker-viewmodels - # secrets: inherit + publishnuget: + uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-nugetserver.yml@main + needs: publishdevops + with: + artifact-name: $ARTIFACT_NAME + secrets: inherit