Skip to content

Commit

Permalink
Merge pull request #4 from OfficeForProductSafetyAndStandards/semanti…
Browse files Browse the repository at this point in the history
…c-version-update

Update how we get the semantic version
  • Loading branch information
yusufkabir authored Nov 26, 2024
2 parents 0199eeb + ae1d963 commit e685119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
versionSpec: '5.x'

- name: Determine Version
id: DetermineVersion
uses: gittools/actions/gitversion/execute@v0
with:
useConfigFile: true
Expand All @@ -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 }}

0 comments on commit e685119

Please sign in to comment.