Skip to content

Commit 750c839

Browse files
authored
Update release.yml
1 parent 7999d05 commit 750c839

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,32 @@ jobs:
3535

3636
- name: Push to NuGet
3737
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

0 commit comments

Comments
 (0)