Skip to content

Commit

Permalink
Update pre-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaabreu committed Oct 3, 2020
1 parent a8c47a2 commit fc18973
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches:
- "master"

paths-ignore:
- "**/README.md"

jobs:
pre-release:
runs-on: ubuntu-latest
Expand All @@ -31,8 +33,6 @@ jobs:
run: dotnet test --no-restore
- name: Pack with dotnet
run: dotnet pack -c Release -p:Version=${{ steps.gitversion.outputs.NuGetVersionV2 }} --no-restore -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output nuget-packages
- name: Push with dotnet
run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
- name: Archive packages
uses: actions/upload-artifact@v2.1.4
with:
Expand All @@ -53,3 +53,5 @@ jobs:
LICENSE
nuget-packages/*.nupkg
nuget-packages/*.snupkg
- name: Push with dotnet
run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json

0 comments on commit fc18973

Please sign in to comment.