-
-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (21 loc) · 622 Bytes
/
release.yml
File metadata and controls
23 lines (21 loc) · 622 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: publish
on:
push:
branches: [ release/** ]
jobs:
publish_nuget_package:
runs-on: ubuntu-latest
steps:
- name: Fetch code
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: Pack package
run: dotnet pack "./CSharp/FrameRateTask/FrameRateTask.csproj" -c Release
- name: Push nuget package
run: dotnet nuget push "./CSharp/FrameRateTask/bin/Release/*.nupkg" --api-key ${{ secrets.NUGET_KEY }} --source "https://api.nuget.org/v3/index.json"