@@ -25,14 +25,18 @@ jobs:
2525 dotnet-version : ${{ env.DOTNETVERSION }}
2626
2727 - name : Get version
28- id : get_version
28+ id : version
2929 uses : battila7/get-version-action@v2
3030
31+ - name : Get previous release tag
32+ id : previousTag
33+ uses : sammcoe/get-previous-release-action@v1.0.3
34+
3135 - name : Install dependencies
3236 run : dotnet restore ${{ env.SOLUTION }}
3337
3438 - name : Build
35- run : dotnet build ${{ env.SOLUTION }} --configuration Release --no-restore /p:Version=${{ steps.get_version .outputs.version-without-v }}
39+ run : dotnet build ${{ env.SOLUTION }} --configuration Release --no-restore /p:Version=${{ steps.version .outputs.version-without-v }}
3640
3741 - name : Test
3842 run : dotnet test ${{ env.SOLUTION }} --no-restore --verbosity normal --logger trx --results-directory "TestResults"
@@ -50,25 +54,26 @@ jobs:
5054 path : TestResults
5155
5256 - name : Build changelog
53- id : changelog
54- uses : metcalfc/changelog-generator@v1 .0.0
57+ id : gitLog
58+ uses : jarrodparkes/git-log-action@1 .0.0
5559 with :
56- myToken : ${{ secrets.GITHUB_TOKEN }}
60+ start : ${{ github.ref }}
61+ end : ${{ steps.previousTag.outputs.tag }}
5762
5863 - name : GitHub release
5964 uses : actions/create-release@v1
6065 id : create_release
6166 env :
6267 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6368 with :
64- release_name : ${{ steps.get_version .outputs.version-without-v }}
69+ release_name : ${{ steps.version .outputs.version-without-v }}
6570 tag_name : ${{ github.ref }}
66- body : ${{ steps.changelog .outputs.changelog }}
71+ body : ${{ steps.gitLog .outputs.log }}
6772 draft : false
6873 prerelease : false
6974
7075 - name : NuGet pack
71- run : dotnet pack ${{ env.SOLUTION }} --configuration Release --no-restore --include-symbols /p:Version=${{ steps.get_version .outputs.version-without-v }} -o out
76+ run : dotnet pack ${{ env.SOLUTION }} --configuration Release --no-restore --include-symbols /p:Version=${{ steps.version .outputs.version-without-v }} -o out
7277
7378 - name : Upload NuGet build artifact
7479 uses : actions/upload-artifact@v2
7782 path : out
7883
7984 - name : NuGet push
80- run : dotnet nuget push ".\out\*.nupkg" --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_TOKEN}}
85+ run : dotnet nuget push ".\out\*.nupkg" --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}
0 commit comments