Skip to content

Commit

Permalink
Merge pull request #4 from DFE-Digital/AsiaWi-patch-1
Browse files Browse the repository at this point in the history
Update publish-nuget.yml
  • Loading branch information
CathLass authored Aug 6, 2024
2 parents 156ee7a + 2a892fe commit f0f3eed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
with:
dotnet-version: 8.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected].10
uses: gittools/actions/gitversion/[email protected].14
id: gitversion
- name: Set version
run: echo "##vso[build.updatebuildnumber]${{ steps.gitversion.outputs.semver }}"
run: echo "##vso[build.updatebuildnumber]${{ steps.gitversion.outputs.SemVer }}"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack --configuration Release --no-build --output ./nupkg /p:PackageVersion=${{ steps.gitversion.outputs.semver }}
run: dotnet pack --configuration Release --no-build --output ./nupkg /p:PackageVersion=${{ steps.gitversion.outputs.SemVer }}
- name: Publish
run: dotnet nuget push ./nupkg/*.nupkg --source github --api-key ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push ./nupkg/*.nupkg --source github --api-key ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f0f3eed

Please sign in to comment.