Skip to content

Commit

Permalink
Merge pull request #93 from samsmithnz/version
Browse files Browse the repository at this point in the history
Update dotnet.yml
  • Loading branch information
samsmithnz committed Aug 18, 2021
2 parents 97a9676 + b30533b commit d815756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ jobs:
path-to-lcov: src/Battle.Tests/TestResults/coverage.info

- name: Pack code into NuGet package
run: dotnet pack src/Battle.Logic/Battle.Logic.csproj --configuration Release -p:Version='${{ steps.gitversion.outputs.SemVer }}'
if: github.ref == 'refs/heads/main'
run: dotnet pack src/Battle.Logic/Battle.Logic.csproj --configuration Release -p:Version='${{ steps.gitversion.outputs.SemVer }}' -p:AssemblyVersion='${{ steps.gitversion.outputs.SemVer }}'
- name: Upload package to GitHub
uses: actions/upload-artifact@v2
with:
name: package
path: src/Battle.Logic/bin/Release/netstandard2.0
- name: Upload nuget package to GitHub
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v2
with:
name: nugetPackage
Expand Down

0 comments on commit d815756

Please sign in to comment.