File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 5353 uses : actions/upload-artifact@v2
5454 with :
5555 name : Package ${{ steps.gitversion.outputs.nuGetVersionV2 }}
56- path : ${{ env.OUTPUT_PATH }}
56+ path : ${{ env.OUTPUT_PATH }}
57+
58+ - name : Create release
59+ id : create_release
60+ uses : softprops/action-gh-release@v1
61+ env :
62+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63+ with :
64+ name : Release ${{ steps.gitversion.outputs.nuGetVersionV2 }}
65+ tag_name : ${{ steps.gitversion.outputs.nuGetVersionV2 }}
66+ files : |
67+ ${{ env.OUTPUT_PATH }}AzureFunctions.HttpBinding.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg
68+ draft : false
69+ prerelease : true
Original file line number Diff line number Diff line change @@ -50,10 +50,26 @@ jobs:
5050
5151 - name : Execute unit tests
5252 run : dotnet test
53-
53+
5454 - name : Publish NuGet
5555 uses :
brandedoutcast/[email protected] 5656 with :
5757 PROJECT_FILE_PATH : HttpBinding/HttpBinding.csproj
5858 VERSION_STATIC : ${{ steps.gitversion.outputs.nuGetVersionV2 }}
59- NUGET_KEY : ${{secrets.NUGET_KEY}}
59+ NUGET_KEY : ${{secrets.NUGET_KEY}}
60+
61+ - name : Create NuGet package
62+ run : dotnet pack ./HttpBinding/HttpBinding.csproj -c Release -o ${{ env.OUTPUT_PATH }} /p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersionV2 }}
63+
64+ - name : Create release
65+ id : create_release
66+ uses : softprops/action-gh-release@v1
67+ env :
68+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69+ with :
70+ name : Release ${{ steps.gitversion.outputs.nuGetVersionV2 }}
71+ tag_name : ${{ steps.gitversion.outputs.nuGetVersionV2 }}
72+ files : |
73+ ${{ env.OUTPUT_PATH }}AzureFunctions.HttpBinding.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg
74+ draft : false
75+ prerelease : false
You can’t perform that action at this time.
0 commit comments