-
Notifications
You must be signed in to change notification settings - Fork 41
28 lines (22 loc) · 1.14 KB
/
release.yml
File metadata and controls
28 lines (22 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Publish Release
on:
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Pack Router
run: dotnet pack src/EdjCase.JsonRpc.Router/EdjCase.JsonRpc.Router.csproj --configuration Release /p:Version=${{ github.event.release.tag_name }} --output . --include-symbols --include-source
- name: Push Router
run: dotnet nuget push EdjCase.JsonRpc.Router.${{ github.event.release.tag_name }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
- name: Pack Client
run: dotnet pack src/EdjCase.JsonRpc.Client/EdjCase.JsonRpc.Client.csproj --configuration Release /p:Version=${{ github.event.release.tag_name }} --output . --include-symbols --include-source
- name: Push Client
run: dotnet nuget push EdjCase.JsonRpc.Client.${{ github.event.release.tag_name }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json