File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 35
35
36
36
- name : Push to NuGet
37
37
run : dotnet nuget push /home/runner/work/MCPSharp/MCPSharp/nupkgs/MCPSharp.${{ github.event.inputs.version }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
38
+
39
+ create-release :
40
+ needs : build-and-publish
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+
45
+ - name : Create GitHub Release
46
+ id : create_release
47
+ uses : actions/create-release@v1
48
+ env :
49
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
+ with :
51
+ tag_name : ${{ github.event.inputs.version }}
52
+ release_name : Release ${{ github.event.inputs.version }}
53
+ body : |
54
+ Release of version ${{ github.event.inputs.version }}
55
+ draft : false
56
+ prerelease : false
57
+
58
+ - name : Upload Release Asset
59
+ uses : actions/upload-release-asset@v1
60
+ env :
61
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
+ with :
63
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
64
+ asset_path : ./nupkgs/MCPSharp.${{ github.event.inputs.version }}.nupkg
65
+ asset_name : MCPSharp.${{ github.event.inputs.version }}.nupkg
66
+ asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments