Skip to content

Commit

Permalink
fix github actions (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
davideicardi authored Jun 17, 2021
1 parent f178525 commit b9fab54
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ jobs:
- name: Test .net core 5.0
run: dotnet test DynamicExpresso.sln --no-restore -c Release --verbosity normal -f netcoreapp5.0
- name: Setup nuget sources
run: |
dotnet nuget add source --name github "https://nuget.pkg.github.com/davideicardi/index.json"
dotnet nuget add source --name official "https://api.nuget.org/v3/index.json"
run: dotnet nuget add source --name github "https://nuget.pkg.github.com/davideicardi/index.json"
- name: Pack
run: dotnet pack DynamicExpresso.sln --no-restore -c Release /p:Version=${{steps.calc_version.outputs.PROJECT_VERSION}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
- name: Publish github package
- name: Publish to github
run: dotnet nuget push "src/DynamicExpresso.Core/bin/Release/DynamicExpresso.Core.${{steps.calc_version.outputs.PROJECT_VERSION}}.nupkg" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}
- name: Publish official
- name: Publish to nuget.org
if: ${{ github.event.inputs.isSnapshot != 'true' }}
run: dotnet nuget push "src/DynamicExpresso.Core/bin/Release/DynamicExpresso.Core.${{steps.calc_version.outputs.PROJECT_VERSION}}.nupkg" --source "official" --api-key ${{ secrets.NUGET_KEY }}
run: dotnet nuget push "src/DynamicExpresso.Core/bin/Release/DynamicExpresso.Core.${{steps.calc_version.outputs.PROJECT_VERSION}}.nupkg" --source "nuget.org" --api-key ${{ secrets.NUGET_KEY }}

0 comments on commit b9fab54

Please sign in to comment.