@@ -52,14 +52,22 @@ jobs:
52
52
# Step 7 - Push the Package to GitHub Packages
53
53
- name : Push the Package to GitHub Packages
54
54
if : ${{ startsWith(github.ref, 'refs/tags/') }}
55
- run : dotnet nuget push "${{ env.PROJECT_NAME }}/bin/Release/*.nupkg" -k ${{ secrets.GH_ACTIONS_PAT }} -s "https://nuget.pkg.github.com/ricado-group/index.json"
55
+ run : dotnet nuget push "${{ env.PROJECT_NAME }}/bin/Release/*.nupkg" -k ${{ secrets.GH_ACTIONS_PAT }} -s "https://nuget.pkg.github.com/ricado-group/index.json" --skip-duplicate
56
56
57
57
# Step 8 - Push the Package to NuGet
58
58
- name : Push the Package to Nuget
59
59
if : ${{ startsWith(github.ref, 'refs/tags/') }}
60
- run : dotnet nuget push "${{ env.PROJECT_NAME }}/bin/Release/*.nupkg" -k ${{ secrets.NUGET_APIKEY }} -s "https://api.nuget.org/v3/index.json"
60
+ run : dotnet nuget push "${{ env.PROJECT_NAME }}/bin/Release/*.nupkg" -k ${{ secrets.NUGET_APIKEY }} -s "https://api.nuget.org/v3/index.json" --skip-duplicate
61
61
62
- # Step 9 - Create New Release
62
+ # Step 9 - Generate the Changelog
63
+ - name : Generate the Changelog
64
+ id : changelog
65
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
66
+
67
+ with :
68
+ myToken : ${{ secrets.GITHUB_TOKEN }}
69
+
70
+ # Step 10 - Create New Release
63
71
- name : Create New Release
64
72
id : create-release
65
73
if : ${{ startsWith(github.ref, 'refs/tags/') }}
68
76
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
77
with :
70
78
tag_name : ${{ env.CI_REF_NAME }}
71
- release_name : ${{ env.PROJECT_NAME }} ${{ env.CI_REF_NAME }}
79
+ release_name : Version ${{ env.CI_REF_NAME }}
72
80
body : |
73
- ${{ env.PROJECT_NAME }} Version ${{ env.CI_REF_NAME }}
74
-
75
- Built Automatically with :heart: using GitHub Actions
81
+ ${{ steps.changelog.outputs.changelog }}
0 commit comments