File tree 2 files changed +25
-3
lines changed
2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Nuget
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ push :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ - name : Setup dotnet
11
+ uses : actions/setup-dotnet@v1
12
+ with :
13
+ dotnet-version : |
14
+ 5.x
15
+ 6.x
16
+ - name : Install dependencies
17
+ run : dotnet restore
18
+ - name : Build
19
+ run : dotnet build --configuration Release --no-restore
20
+ - name : Pack
21
+ run : dotnet pack -c Release -o out
22
+ - name : Push
23
+ run : dotnet nuget push ./out/*.nupkg -k ${NUGET_TOKEN}
24
+ env :
25
+ NUGET_TOKEN : ${{ secrets.NUGET_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ on: [push]
3
3
jobs :
4
4
test :
5
5
runs-on : ubuntu-latest
6
- strategy :
7
- matrix :
8
- dotnet-version : [ '5.x', '6.x' ]
9
6
steps :
10
7
- uses : actions/checkout@v2
11
8
- name : Setup dotnet
You can’t perform that action at this time.
0 commit comments