From ae1d9633435e8cf6517271064f30adbc36c25a18 Mon Sep 17 00:00:00 2001 From: yusufkabir <39498125+yusufkabir@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:04:33 +0000 Subject: [PATCH] Update how we get the semantic version --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13d8588..b2553e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,7 @@ jobs: versionSpec: '5.x' - name: Determine Version + id: DetermineVersion uses: gittools/actions/gitversion/execute@v0 with: useConfigFile: true @@ -48,7 +49,7 @@ jobs: # run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build --verbosity normal - name: Package nuget - run: dotnet pack "${{ env.WORKING_DIRECTORY }}/UKMCAB.Subscriptions.Core/UKMCAB.Subscriptions.Core.csproj" --configuration ${{ env.CONFIGURATION }} -o:package /p:PackageVersion=$GITVERSION_SEMVER + run: dotnet pack "${{ env.WORKING_DIRECTORY }}/UKMCAB.Subscriptions.Core/UKMCAB.Subscriptions.Core.csproj" --configuration ${{ env.CONFIGURATION }} -o:package /p:PackageVersion=${{ steps.DetermineVersion.outputs.SemVer }} - name: Push generated package to GitHub registry run: dotnet nuget push "./package/*.nupkg" --source https://nuget.pkg.github.com/OfficeForProductSafetyAndStandards/index.json --api-key ${{ github.token }}