Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
Adding Testing and Cleanup up a bit of the publishing (Hopefully)
  • Loading branch information
Jaben committed Feb 17, 2024
1 parent 52bd0ce commit d75f1a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ jobs:
uses: gittools/actions/gitversion/execute@v0.9.7
with:
useConfigFile: true

- name: Run Tests
run: dotnet test

- name: Pack
run: dotnet pack -c Release -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersion }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg

- name: Publish
if: github.event_name != 'pull_request' && (github.ref_name == 'master')
if: github.event_name != 'pull_request' && (github.ref_name == 'master')
run: |
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGETKEY }}
dotnet nuget push **/*.snupkg --source 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGETKEY }} --skip-duplicate

0 comments on commit d75f1a7

Please sign in to comment.